Wiki installation Memorandum

Source: Internet
Author: User
Tags mediawiki

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 !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.