一, 安装服务
[[email protected] LAMP]# tar -zxf httpd-2.0.64.tar.gz
[[email protected] LAMP]# cd httpd-2.0.64
[[email protected] httpd-2.0.64]# ./configure && make && make install
[[email protected] LAMP]# tar -zxf mysql-5.0.18.tar.gz
[[email protected] LAMP]# cd mysql-5.0.18
[[email protected] mysql-5.0.18]# ./configure --prefix=/usr/local/mysql --with-charset=gbk && make && make install
[[email protected] mysql-5.0.18]# cp support-files/my-medium.cnf /etc/my.cnf
[[email protected] mysql]# bin/mysql_install_db --user=mysql
[[email protected] mysql]# chown -R root .
[[email protected] mysql]# chgrp -R mysql .
/usr/local/mysql/share/mysql/mysql.server start
[[email protected]]#./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
转载于:https://blog.51cto.com/zhentaolove/1070712