安裝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> -->
換成
<value name="user">www</value>
<value name="group">www</value>
本文轉自 linuxtro 51CTO部落格,原文連結:http://blog.51cto.com/linuxtro/971288,如需轉載請自行聯系原作者