centos - PHP 从构建中安装 httpd 而不是 FPM

标签 centos php

我在 CentOS VPS 上,每当我从构建安装 php 时,它都会安装 httpd 服务器而不是 php-fpm。简而言之,我可以使用 service start php-fpm 启动 php,如果我要从 webtatic 或 remi repos 安装 php,我通常会这样做。以下是我在安装 *-devel 组件后构建 php 的方式。

$ wget http://ch1.php.net/get/php-5.6.0.tar.bz2/from/this/mirror
$ tar jxf php-5.6.0.tar.bz2
$ cd php-5.6.0/
$ ./configure --with-mysql --enable-mbstring --enable-exif --with-pdo-mysql=mysqlnd --enable-cli --with-gd  --enable-session --enable-dom --enable-phpdbg --enable-fpm --enable-ctype --with-vpx-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir

最佳答案

尝试使用这个配置行

./configure --disable-all --with-mysql --enable-mbstring --enable-exif --with-pdo-mysql=mysqlnd --enable-cli --with-gd  --enable-session --enable-dom --enable-phpdbg --enable-fpm --enable-ctype --with-vpx-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir

还需要查看输出错误。

关于centos - PHP 从构建中安装 httpd 而不是 FPM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25998377/

相关文章:

javascript - 每年在仪表板中显示的数字从 1 开始

linux - 在 Perl 中使用 expect 和 system()

php - 哪个操作系统更适合网络服务器,ubuntu 或 debian 或其他?

Python安装pyrit报错,CentOS下命令gcc

php - 我的数据库中希腊字母之后的所有内容都是空的

php - 通过JSON、Jquery和PHP动态显示MYSQL表数据

php - 如何在 tcpdf 中包含 jpgraph

php - 使用 MYSQL 提交的发布日期/时间表单

bash - 如果标准输入为空,如何忽略 xargs 命令?

php - 如果尚不存在,如何在 WordPress 中创建文件夹?