安装php问题集合
1、
Configure: error: Please reinstall the libcurl distribution
When compiling php from source for nginx web server, i get error
checking for cURL support... yes
checking if we should use cURL for url streams... yes
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
On checking, found curl-devel not installed
[root@vps1 php-5.2.8]# yum list|grep curl
curl.x86_64 7.15.5-2.el5 installed
curl.i386 7.15.5-2.el5 installed
curl-devel.x86_64 7.15.5-2.el5 base
curl-devel.i386 7.15.5-2.el5 base
[root@vps1 php-5.2.8]#
The problem is fixed by installing curl-devel
yum -y install curl-devel
2、
编译 php
configure: error: Cannot find ldap.h
安装 :
yum install openldap
yum install openldap-devel
3、
configure: error: mcrypt.h not found. Please reinstall libmcrypt.,意思是,没有查找到mcrytp.h,需要安装libcrytp,在下面的地址下载libmarypt:
wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
安装:
#tar -zxvf libmcrypt-2.5.7.tar.gz
#cd libmcrypt-2.5.7
./configure
make
make install
然后再安装PHP
4、
修改PHP的源码,这里有点小问题,不然会编译出错提示: make: *** [ext/mssql/php_mssql.lo] Error 1
打开 ext/mssql/php_mssql.h:
注释掉行 “typedef unsigned char *LPBYTE;”
然后再make编译,看工作是否正常.
5、
装完php-ftp 不能起动
[ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’
出现些错误提示,请修改 php-fpm.conf
Unix user of processes
<!-- <value name="user">www</value> -->
Unix group of processes
<!-- <value name="group">www</value> -->
换成
Unix user of processes
<value name="user">www</value>
Unix group of processes
<value name="group">www</value>