Home > Backend Development > PHP Tutorial > yum安装PHP发生有关问题的逐步解决

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

WBOY
Release: 2016-06-13 12:29:21
Original
1018 people have browsed it

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

?

?

?

?

?

?

?

?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template