我已经使用本手册在 Centos + Apache 上安装了 php-fpm - http://www.howtoforge.com/using-php5-fpm-with-apache2-on-centos-6.2-p2但 PHP-FPM 未显示在 phpinfo 中()。我不知道为什么。
PHP-FPM 进程已安装并运行良好:
# service php-fpm status
php-fpm (pid 13349) is running...
# service php-fpm configtest
[29-Apr-2013 14:17:34] NOTICE: configuration file /etc/php-fpm.conf test is successful
Run Code Online (Sandbox Code Playgroud)
我的/etc/php-fpm.conf:
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
; All relative paths in this configuration file are relative to PHP's install
; prefix.
; Include one or more files. If glob(3) exists, it is used to include a bunch of
; files …Run Code Online (Sandbox Code Playgroud)