php 集合安装,安装php问题集合

安装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 /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

Unix group of processes

换成

Unix user of processes

www

Unix group of processes

www

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值