Monday, 25 October 2010

mediawiki installation

Download first

http://www.mediawiki.org/wiki/Download

Install LAMP on your server.

Uncompress the package and make the config directory writeable by chmod a+w config.

Use web browser to access the directory. ("http://localhost/config")

Create the account for mediawiki on MySQL and job done.

If you have previous version of mediawiki and want to use the old data, just use mysqldump to backup the old data and restore it for the new version.

Enable public_html on user accounts (Ubuntu)

1. a2enmod userdir
2. /etc/init.d/apache2 force-reload
3. Open /etc/apache2/apache2.conf and add "UserDir /home/*/public_html" at the end
4. /etc/init.d/apache restart

To enable php under user account, remove,
< IfModule mod_userdir.c >
< Directory /home/*/public_html >
php_admin_value engine Off
< /Directory >
< /IfModule >

from /etc/apache2/mods-available/php5.conf