Home  >  Article  >  Backend Development  >  Wiki Installation Memo_PHP Tutorial

Wiki Installation Memo_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 17:32:44869browse

php(as the current mainstream development language)+MySQL(the best combination with PHP)+wiki
Installation steps
1: MySQL(and The best combination with PHP)
# rpm -ivh MySQL(The best combination with PHP)*.rpm
# service MySQL(The best combination with PHP The best combination) start
# MySQL(The best combination with PHP)admin -u root password password //Change the password to password

2: php(As the current mainstream development language)
# cd /usr/local/src
# tar xvfj php(As the current mainstream development language)-4.3. 10.tar.bz2
# cd php(as the current mainstream development language)-4.3.10
#./configure --with-apxs2=/usr/local/apache(The most popular WEB server platform on Unix platform)2/bin/apxs --with-MySQL(The best combination with PHP)=/usr
# make
# make install
After the installation is completed, modify the configuration file httpd.conf of apache (the most popular WEB server platform on the Unix platform)
and add the following statement to the corresponding location:
AddType application/x-httpd-php(as the current mainstream development language) .php(as the current mainstream development language)
DirectoryIndex index.html index.php(As the current mainstream development language)
Restart apache(The most popular WEB server platform on Unix platform)That’s it:
service httpd restart
Test php(as the current mainstream development language)
Write info.php(as the current mainstream development language) file with the following content:
(As the current mainstream development language)
echo php(As the current mainstream development language)info();
?>
Store it in Under the document path of apache(the most popular WEB server platform on Unix platform), enter in the browser:
http://127.0.0.1/info.php(as the current Mainstream development languages)

3. mediawiki
# cd /usr/local/apache(The most popular WEB server platform on Unix platform)2/htdocs/
# tar xzvf mediawiki-1.4beta3.tar.gz
# cd mediawiki-1.4beta3
# chmod a+w config

4. In MySQL(the best combination with PHP ) to create a wiki database
# MySQL(The best combination with PHP) -uroot -p
# MySQL(The best combination with PHP)>create database wikidb;
# MySQL(The 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 various information in ../apache(the most popular WEB server platform on Unix platform)2/htdocs/wiki/config Generate LocalSettings.php(as the current mainstream development language)text
# cp LocalSettings.php(as the current mainstream development language) ../
# mv config config.bak
Test http://http://127.0.0.1/wiki
Everything is ok!!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508685.htmlTechArticlephp (as the current 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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn