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/mediawikiA 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.phpAnd 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.phpUse 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