Install and setup MediaWiki

 Introduction:
MediaWiki is a free software wiki package originally written for Wikipedia. It is now used by several other projects of the non-profit Wikimedia Foundation and by many other wikis, including this very website, the home of MediaWiki.

Install notes:
1. install mediawiki:
#sudo apt-get install mediawiki
This command will install mediawiki, MySQL, PHP5 and something related to Website.
2. Configuration mediawiki:

apache2

Bring the Wiki configuration over to Apache, so the web server will work:

  sudo ln -s /etc/mediawiki1.7/apache.conf /etc/apache2/sites-available/mediawiki.conf
sudo ln -s /etc/apache2/sites-available/mediawiki.conf /etc/apache2/sites-enabled/001-mediawiki

sudo invoke-rc.d apache2 restart


*** a 001-mediawiki named text file must be created in the /etc/apache2/sites-enabled/ directory after an error is generated,
stating that the 001-mediawiki file or folder doesn't exist .
Then run:

sudo ln -s /etc/apache2/sites-available/mediawiki1.7.conf /etc/apache2/sites-enabled/001-mediawiki

then

sudo invoke-rc.d apache2 restart
***

DONE !

MediaWiki

Initial Setup

See Help:Running MediaWiki on Ubuntu GNU/Linux for more detailed discussion on configuring MediaWiki.

Browse to: http://localhost/mediawiki

A message stating that MediaWiki has not yet been set up will appear, along with a configuration link. Click on the link to continue.

Fill out the details on the installation page. The main things you need to do are:

  • choose a name for your new wiki
  • choose a database username and password for MediaWiki to use

You can either pre-create this username in your MySQL database (give it the permissions the install page recommends), or if you have root access to the database you can let MediaWiki do it for you.

To let MediaWiki auto-create the users, enter 'root' and your mysql admin password for the root database login details at the end of the page. Note that mysql under ubuntu defaults to having a blank password. It's a very good idea to change it!

Save Setup

Per the instructions on the setup page, Copy settings:

sudo mv /var/lib/mediawiki1.7/config/LocalSettings.php /var/lib/mediawiki1.7/LocalSettings.php

And change permission on script

sudo chmod 600 /var/lib/mediawiki1.7/LocalSettings.php *** for full access for editing *** sudo chmod 777 /var/lib/mediawiki1.7/LocalSettings.php

Use Your Wiki!

Browse to http://hostname/mediawiki, and start using your new wiki!


Reference:
http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu_GNU/Linux#Use_Your_Wiki.21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值