首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用NGiNX在Ubuntu上安装PHP(PHP5.4)

用NGiNX在Ubuntu上安装PHP(PHP5.4)
EN

Server Fault用户
提问于 2012-08-20 22:45:55
回答 1查看 3.1K关注 0票数 0

这是cmd:

代码语言:javascript
复制
pecl install apc

结果:

代码语言:javascript
复制
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed

由于某些原因,我无法安装"apc“和"pecl_http”。

另外,我正在使用PHP-5.4,当我编译它时,我这样做了:

代码语言:javascript
复制
./configure --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --enable-ctype --enable-bcmath --enable-calendar  --enable-exif  --with-gettext --with-openssl --enable-shmop --enable-soap --enable-wddx --with-xmlrpc

我启用了"fpm“,这对PHP5.4来说足够了吗?这是否是pecl不能工作的原因呢?

提前感谢您的帮助。

更新:

我确实做了&&做安装

代码语言:javascript
复制
Configuration File (php.ini) Path: /usr/local/lib
Loaded Configuration File:         (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed:      (none)
EN

回答 1

Server Fault用户

发布于 2012-08-20 23:02:27

您丢失了php5-dev:http://packages.ubuntu.com/quantal/php5-dev

通过在PHP5.4配置期间激活PHP,您可以启用php:http://php-fpm.org/

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/419449

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档