Rumah > pembangunan bahagian belakang > tutorial php > yum安装PHP发生有关问题的逐步解决

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Lepaskan: 2016-06-13 12:29:21
asal
1052 orang telah melayarinya

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

?

?

?

?

?

?

?

?

Label berkaitan:
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Isu terkini
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan