1.httpd-2.2.3.tar.gz
Gunzip | httpd-2.2.3.tar.gz | tar-xvf-
CD httpd-2.2.3
./Configure
Make
Make install
Start:/usr/local/apache2/bin/apachectl start
2.mysql-5.0.22.tar.gz
Groupadd MySQL
Useradd-G MySQL
Gunzip | mysql-5.0.22.tar.gz | tar-xvf-
CD mysql-5.0.22
./Configure -- prefix =/usr/local/MySQL -- With-charset = gb2312
Make
Make install
CP support-files/my-medium.cnf/etc/My. CNF
CD/usr/local/MySQL
Bin/mysql_install_db -- user = MySQL // used to install database files
Chown-r Root
Chown-r MySQL VaR
Chgrp-r MySQL
Start bin/mysqld_safe -- user = MySQL &
3.php-5.2.0.tar.gz
Gunzip | php-5.2.0.tar.gz | tar-xvf-
CD php-5.2.0
. /Configure -- prefix =/usr/local/PHP -- With-mysql =/usr/local/MySQL -- with-apxs2 =/usr/local/Apache/bin/apxs -- enable-track- vars -- enable-force-CGI-redirect -- With-config-file-Path =/usr/local/Apache/Conf
Make
Make install
Cp php. ini-Dist/usr/local/Apache/lib/PHP. ini
Edit the php. ini file:
Search:
; Default_charset = "iso-8859-1"
Add a line below this line
Default_charset = "gb2312"
# Edit the httpd. conf file of Apache:
Search:
Directoryindex index.html
Add index. php later to enable Apache to open files on the default homepage of PHP.
Search:
# Addtype application/X-tar. tgz
Add
Addtype application/X-httpd-PHP. php
Restart Apache