- setenforce 0
- --------------------------------------------------------------------
安装 PHP 时的报错
- checking libxml2 install dir... no
- checking for xml2-config path...
- configure: error: xml2-config not found. Please check your libxml2 installation.
检查是否安装了 libxm 包
- [root@XKWB3403 PHP-5.3.8]# rpm -qa |grep libxml2
- libxml2-2.6.26-2.1.12
- libxml2-python-2.6.26-2.1.12
重新安装 libxml2 和 libxml2-devel 包
- yum install libxml2
- yum install libxml2-devel -y
安装完之后查找 xml2-config 文件是否存在
- [root@XKWB3403 PHP-5.3.8]# find / -name "xml2-config"
- /usr/bin/xml2-config
如果存在的话重新安装 PHP
- [root@XKWB3403 PHP-5.3.8]# ./configure
- ---------------------------------------------------------------------------
安装 mcrypt 时间报错
- [root@www ~]# tar zxf mcrypt-2.6.8.tar.gz -C /usr/src/
- [root@www ~]# cd /usr/src/mcrypt-2.6.8/
- [root@www mcrypt-2.6.8]# export LD_LIBRARY_PATH=/usr/local/lib
- :$LD_LIBRARY_PATH
- [root@www mcrypt-2.6.8]# ./configure
- [root@www mcrypt-2.6.8]# make && make install
PHP-FPM 安装报错解决
来源: http://www.bubuko.com/infodetail-2788534.html