Php (as the mainstream development language) + MySQL (the best combination with PHP) + wiki
Installation Steps
1: MySQL (the best combination with PHP)
# Rpm-ivh MySQL (the best combination with PHP) *. rpm
# Service MySQL (the best combination with PHP) start
# MySQL (best combination with PHP) admin-u root password // Change password to password
2: php (as the mainstream development language)
# Cd/usr/local/src
# Tar xvfj PHP (the current development language version -4.3.10.tar.bz2)
# Cd php (as the mainstream development language)-4.3.10
#. /Configure -- with-apxs2 =/usr/local/apache (the most popular WEB server platform on Unix) 2/bin/apxs -- with-MySQL (the best combination with PHP) =/usr
# Make
# Make install
After installation, modify the configuration file httpd. conf of apache (the most popular WEB server platform on Unix ).
Add the following statement to the corresponding position:
AddType application/x-httpd-php (as the mainstream development language). php (as the mainstream development language)
DirectoryIndex index.html index. php (as the mainstream development language)
Restart apache (the most popular WEB server platform on Unix:
Service httpd restart
Test php (as the mainstream development language)
Compile the info. php file as the mainstream development language. The content is as follows:
<? Php (as the mainstream development language)
Echo php (as the mainstream development language) info ();
?>
Save it in the document path of apache (the most popular WEB server platform on the Unix platform), and enter:
Http: // 127.0.0.1/info. php (as the mainstream development language)
3. mediawiki
# Cd/usr/local/apache (the most popular WEB server platform on the Unix platform) 2/htdocs/
# Tar xzvf mediawiki-1.4beta3.tar.gz
# Cd mediawiki-1.4beta3
# Chmod a + w config
4. Create a wiki database in MySQL (the best combination with PHP)
# MySQL (best combination with PHP)-uroot-p
# MySQL (the best combination with PHP)> create database wikidb;
# MySQL (best combination with PHP)> grant all on wikidb. * to wikidb @ localhost identified by password;
# MySQL (the best combination with PHP)> flush privileges;
# MySQL (the best combination with PHP)> exit
5. Configure wiki
Http: // 127.0.0.1/wiki
Add information in the./apache (the most popular WEB server platform on the Unix platform) 2/htdocs/wiki/config directory to generate LocalSettings. php (as the mainstream development language)
# Cp LocalSettings. php (as the mainstream development language )../
# Mv config. bak
Test http: // 127.0.0.1/wiki
Everything is OK !!