当前位置: 代码迷 >> PHP >> yum安装PHP发生有关问题的逐步解决
  详细解决方案

yum安装PHP发生有关问题的逐步解决

热度:103   发布时间:2016-04-28 16:37:14.0
yum安装PHP发生问题的逐步解决

[[email protected] php-5.6.20]# ./configure --enable-fpm --with-mysql

configure: error: xml2-config not found. Please check your libxml2 installation.

[[email protected] php-5.6.20]# rpm -qa |grep libxml2

libxml2-python-2.7.6-20.el6_7.1.x86_64

libxml2-2.7.6-20.el6_7.1.x86_64

重新安装libxml2和libxml2-devel包, yum安装的时候发现新版本会提示更新,需要更新的可以更新

[[email protected] php-5.6.20]#??yum install libxml2

[[email protected] php-5.6.20]# yum install libxml2-devel

[[email protected] php-5.6.20]# ./configure --enable-fpm --with-mysql

[[email protected] php-5.6.20]#?make

[[email protected] php-5.6.20]#?make install

?安装完成之后,

?把安装目录下的相关信息复制到指定地方

[[email protected] php-5.6.20]#cp php.ini-development /usr/local/php/php.ini

[[email protected] php-5.6.20]#cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf

[[email protected] php-5.6.20]#cp sapi/fpm/php-fpm /usr/local/bin

编辑php.ini

[[email protected] php-5.6.20]#vim /usr/local/php/php.ini

修改cgi.fix_pathinfo=0

编辑php-fpm.conf

[[email protected] php-5.6.20]#vim /usr/local/etc/php-fpm.conf

?

?

?

?

?

?

?

?

  相关解决方案