我在 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/