LINUX PHP安装

[root@localhost src]# tar xvf php-5.3.6.tar

[root@localhost src]# mkdir -p /home/web/php

[root@localhostsrc]#pwd

/home/src

[root@localhost src]# cd php-5.3.6

[root@localhost php-5.3.6]# ./configure --prefix=/home/web/php/ --with-apxs2=/home/web/apache/bin/apxs --with-config-file-path=/home/web/php/

......

configure: error: xml2-config not found. Please check your libxml2 installation.报错,显示缺少东东,需要安装 libxml2

[root@localhost php-5.3.6]# yum install libxml2 libxml2-devel

继续

[root@localhost php-5.3.6]# ./configure --prefix=/home/web/php/ --with-apxs2=/home/web/apache/bin/apxs --with-config-file-path=/home/web/php/

[root@localhost php-5.3.6]#make

[root@localhost php-5.3.6]#make install

相关推荐