Chinaunix首页 | 论坛 | 博客
  • 博客访问: 61456
  • 博文数量: 17
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 160
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-07 11:16
文章分类

全部博文(17)

文章存档

2011年(1)

2009年(16)

我的朋友

分类: LINUX

2009-07-13 23:40:37

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 for more information.

Install

To install on your Ubuntu (or Kubuntu, etc) server (with 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 ) and connect with , or visit from the server itself (using 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:

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:

See also

External Links

The following are unverified suggestions made by users.

Turnkey Linux

An Ubuntu-based is one of the easiest ways to get up and running with MediaWiki on Ubuntu. It’s part of a family of pre-integrated based on Ubuntu 8.04.2 (Hardy LTS).

阅读(3212) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~