Heim  >  Artikel  >  Backend-Entwicklung  >  yum安装PHP发生有关问题的逐步解决

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

WBOY
WBOYOriginal
2016-06-13 12:29:21983Durchsuche

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

?

?

?

?

?

?

?

?

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn