一, 安装服务
[root@localhost LAMP]# tar -zxf httpd-2.0.64.tar.gz
[root@localhost LAMP]# cd httpd-2.0.64
[root@localhost httpd-2.0.64]# ./configure && make && make install
[root@localhost LAMP]# tar -zxf mysql-5.0.18.tar.gz
[root@localhost LAMP]# cd mysql-5.0.18
[root@localhost mysql-5.0.18]# ./configure --prefix=/usr/local/mysql --with-charset=gbk && make && make install
[root@localhost mysql-5.0.18]# cp support-files/my-medium.cnf /etc/my.cnf
[root@localhost mysql]# bin/mysql_install_db --user=mysql
[root@localhost mysql]# chown -R root .
[root@localhost mysql]# chgrp -R mysql .
/usr/local/mysql/share/mysql/mysql.server start
[root@localhostphp-5.2.8]#./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql && make && make install
二, 调试配置文件
232 LoadModule php5_module modules/libphp5.so