Copy the downloaded software to the server via FTP (/home/funpower)
2. Install Apache and PHP
# Cd/home/funpower
# tar ZXVF apache_1.3.33.tar.gz
# tar ZXVF php-4.3.9.tar.gz
# CD apache_1.3.33
#./configure--prefix=/usr/local/apache
# CD php-4.3.9
#./configure--with-apache=. /apache_1.3.33--with-mysql--disable-debug--enable-track-vars
# CP Php.ini-dist/usr/local/lib
# Cd/usr/local/lib
# MV Php.ini-dist php.ini
# CD apache_1.3.33
#./configure--prefix=/usr/local/apache--activate-module=src/modules/php4/libphp4.a
# make
# make Install
Configure/usr/local/apache/conf/httpd.conf
Join:
AddType application/x-httpd-php. php
AddType Application/x-httpd-php-source. Phps
and modify the following:
Servername itnew.3322.org
DirectoryIndex index.php
To add Apache to a startup item:
# ee/etc/rc.local
Add the following line:
/usr/local/apache/bin/apachectl start
Restart the server, create a new test.php under/usr/local/apache/htdocs, and then enter http://yourdomain.com/test.php, and if you can see php-4.3.9 information, Apache and PHP are installed successfully.
3, install MySQL
# Cd/home/funpower
# PW Groupadd MySQL
# PW AddUser mysql-g mysql-s/nonexitent
# tar ZXVF mysql-4.0.21.tar.gz
#./configure--prefix=/usr/local/mysql
# make
# make Install
At this point, the MySQL installation is complete, the following start the specific configuration.
Add database and database username used by wiki
# Cd/usr/local/mysql/bin
#./mysql-u root-p
mysql> CREATE DATABASE Wikidb;
Mysql> Grant all on wikidb.* to wikidb@localhost identified by ' 654321 ';
mysql> flush Privileges;
Mysql> exit
4. Installation MediaWiki
# Cd/home/funpower
# tar ZXVF mediawiki-1.5.2.tar.gz
# Mkdir/usr/local/apache/htdocs/wiki
# CD mediawiki-1.5.2
# Cp–r */usr/local/apache/htdocs/wiki
In IE browser input http://127.0.0.1/wiki/, fill out some wiki installation basic parameters, fill in the database and database user name is just created the database. After filling in, click "Install" button, complete the installation.
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.