Thursday, January 19, 2006
Media Wiki on RHEL4
To install MediaWiki on RedHat Linux Enterprise Edition, follow thw following instructions:
1. Download MediaWiki from http://www.mediawiki.org/wiki/Download and untar it
1. Download MediaWiki from http://www.mediawiki.org/wiki/Download and untar it
tar zxvf mediawiki-1.5.5.tar.gz mv mediawiki-1.5.5/ /var/www/wiki2. Check that httpd and php are installed (from the default installation). I have the following rpms installed.
httpd-2.0.52-19.ent php-4.3.9-3.93. Install MySQL and php-mysql. I had following RPMs.
MySQL-shared-standard-4.1.16-1.rhel4 MySQL-server-standard-4.1.16-1.rhel4 MySQL-devel-standard-4.1.16-1.rhel4 MySQL-client-standard-4.1.16-1.rhel4 php-mysql-4.3.9-3.94. Create account on MySQL for media wiki. Either use mysql-administrator or phpMyAdmin or the following commands
[root@queens]# mysql -uroot -hlocalhost -p mysql mysql> create database wikidb; mysql> GRANT ALL PRIVILEGES ON wikidb.* to 'wikiuser'@'%' identified by 'wikipasswd' WITH GRANT OPTION; mysql> FLUSH PRIVILEGES;5. Change the permissions of MediaWiki config directory.
chmod a+w /var/www/wiki/config/6. Visit the wiki URl (http://yourhost/wiki/) and enter all configuration details. When finished move LocalSettings.php to parent directory and change permissions of config directory.
mv /var/www/wiki/config/LocalSettings.php /var/www/wiki/ chmod -R og-w /var/www/wiki/config/All RPMS are available at http://www.db.toronto.edu/~nilesh/linux/rpms/RHEL4/.