免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 887 | 回复: 0
打印 上一主题 下一主题

MediaWiki ubuntu 安装方法步骤 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-13 23:40 |只看该作者 |倒序浏览
MediaWiki is the engine that is used for Wikipedia, but you can also
use it to set up your own wiki server with information of your own. See
MediaWiki
for more information.
Install
To install on your Ubuntu (or Kubuntu, etc) server (with
Apache and MySQL
already installed):
sudo apt-get install mediawiki imagemagick mediawiki-math mysql-server
To enable MediaWiki edit the following file and remove the ‘#’ from
the third line so that it reads ‘Alias /mediawiki /var/lib/mediawiki’:
sudo nano /etc/apache2/conf.d/mediawiki.conf
Then restart apache:
sudo /etc/init.d/apache2 restart
The next step is to visit the website. Since you will be entering
passwords, you don’t want to make an unsecured connection. Either set
up a ssl server] ( see
forum/server/apache2/SSL
) and connect with
https://yoursite.example.com/mediawiki
, or visit from the server itself (using
elinks
or lynx, two excellent text-based web browsers):
elinks localhost/mediawiki
fill out the forms, noting that the final form is NOT your root or
user password, but the password for the root mysql account (blank by
default)
Lastly, move the config files as requested to prevent anyone else from changing these settings:
NOTE: Check the output in your web browser: if its instructions differ from below, follow them.
sudo mv /var/lib/mediawiki/config/LocalSettings.php /etc/mediawiki/LocalSettings.php sudo chmod 600 /etc/mediawiki/LocalSettings.php sudo rm -Rf /var/lib/mediawiki/config
You are done! you should see a wiki page at:
http://yoursite.example.com/mediawiki
Customize
The Apache2 config files reside at /etc/apache2/conf.d/mediawiki.conf
You might want to customize the look of your wiki.
To change the icon make a 135×135 pixel logo in PNG format and move it to the right place:
sudo cp my_new_logo.png /var/lib/mediawiki/skins/common/images/wiki.png
To get rid of the Mac-like sunburst in the background, edit /var/lib/mediawiki/skins/monobook/main.css and change:
  • background: #f9f9f9 url(headbg.jpg) 0 0 no-repeat;
    to
  • background: #f9f9f9;
    Extensions
    Mediawiki extensions are stored in the /etc/mediawiki-extensions/extensions-available folder. You can enable an extension using
    sudo mwenext
    Tab/autocomplete shows a list of extensions.
    Similarly use mwdisext to disable an extension.
    More
    It is possible to run multiple parallel instances of Mediawiki on a single server:

  • http://www.jirp.nl/2008/04/11/mediawiki-farm-multiple-wiki/

    See also

  • http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu

    External Links
    The following are unverified suggestions made by users.
    Turnkey Linux
    An Ubuntu-based
    MediaWiki appliance
    is one of the easiest ways to get up and running with MediaWiki on Ubuntu. It’s part of a family of pre-integrated
    TurnKey Linux

    Software Appliances
    based on Ubuntu 8.04.2 (Hardy LTS).
                   
                   
                   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/90756/showart_1995169.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP