找不到 php-fpm 配置

找不到 php-fpm 配置

我在服务器上找不到 php-fpm 配置文件。我尝试php-fpm.conf在文件夹中创建一个文件/etc/php.d/,但该文件未包含在内。

它也不在这些位置:/etc/php-fpm.conf文件或/etc/php-fpm.d

输出php -v

-bash-3.2# php -v
PHP 5.4.10 (cli) (built: Dec 19 2012 11:25:26) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

服务器上的操作系统:CentOs 5。我正在运行 nginx+php-fpm。

知道它可能在哪里吗,或者我怎样才能制作一个并将其包括在内?

部分输出php -i:(我将系统替换为 x)

-bash-3.2# php -i
phpinfo()
PHP Version => 5.4.10

System => x
Build Date => Dec 19 2012 11:24:59
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Scan this dir for additional .ini files => /etc/php.d
Additional .ini files parsed => /etc/php.d/apc.ini,
/etc/php.d/bbcode.ini,
/etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/igbinary.ini,
/etc/php.d/json.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mcrypt.ini,
/etc/php.d/memcache.ini,
/etc/php.d/memcached.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini

PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,NTS
PHP Extension Build => API20100525,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

答案1

我刚刚重新安装了 php-fpm

yum --enablerepo=remi install php-fpm

由于某种原因,它现在可以工作了。配置文件已生成,并且 php 正在使用 FPM。

答案2

php5-fpm 配置文件通常是 /etc/php5。那里有 php5-fpm、cli 和通用模块的配置。[不确定这是否适用于 RH 类型的操作系统,因为我在 debian 类型的操作系统上找到了它们]

相关内容