A-A+
Linux下安装LAMP环境之安装PHP
(在安装php之前必须先安装libxml2,因此可以通过下载libxml2安装包)
[root@localhost ~]#cd /root/soft/soft
[root@localhost soft]#tar -zxvf p.h.p.5.4.3tar.gz
[root@localhost soft]#cd p.h.p.5.4.3
[root@localhost p.h.p.5.4.3]#./configure --prefix=/opt/ws/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php --enable-mbstring=all
[root@localhost p.h.p.5.4.3]#make
[root@localhost p.h.p.5.4.3]#make install