rpm -e httpd mysql
At time of writing, these should all be version 4.0.x in order to ensure compadability with the PHP scripts powering MediaWiki.
rpm -ivh MySQL-client-4.0.26-0.i386.rpm MySQL-server-4.0.26-0.i386.rpm MySQL-shared-4.0.26-0.i386.rpm
mysql_install_db
/usr/lib
/sbin/ldconfig
mv httpd-2.0.55.tar.gz /usr/local/; cd /usr/local/ tar -xzvf httpd-2.0.55.tar.gz cd httpd-2.0.55 ./configure --enable-so make make install
/usr/local/apache2/bin/apachectl start http://localhost/ /usr/local/apache2/bin/apachectl stop
mv php-4.4.1.tar.gz /usr/local/; cd /usr/local/ tar -xzvf php-4.4.1.tar.gz; cd php-4.4.1/ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql make make install
LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps
tar -xzvf mediawiki-1.5.1.tar.gz cp mediawiki /var/www/wiki
DirectoryIndex index.html index.html.var index.php /usr/local/apache2/bin/apachectl restart
http://localhost/