I have just installed Plesk 12, which comes inbuilt with an nginx server over an apache server. On enabling PHP-FPM, i cannot see it mentioned using the phpinfo(); function…thought the website works just fine.
Also, on trying these –
1.) telnet 127.0.0.1 9000
Result =
telnet: could not resolve 127.0.0.1/:9000: Servname not supported for ai_socktype
2.) ps -ef | grep php-fpm
Result =
root 3188 1 0 03:23 ? 00:00:01 php-fpm: master process (/etc/php5/fpm/php-fpm.conf) www-data 3194 3188 0 03:23 ? 00:00:00 php-fpm: pool www www-data 3195 3188 0 03:23 ? 00:00:00 php-fpm: pool www root 6044 5140 0 12:23 pts/1 00:00:00 grep --color=auto php-fpm
3.) netstat -tlpn | grep :9000
Result = No result
I’m not sure if something is wrong, or if PHP-FPM is working correctly. Any thoughts? Thanks.
2
Answers
Here's the solution - When I go to my Plesk's Web server settings, there is a checkbox that says "Process PHP by Nginx". Check that, and the
phpinfo();
shows the Server API as FPM/FastCGI now! Cheers!I assume you have installed and activated the PHP-FPM module like described in the Plesk Administration Guide under the section PHP-FPM.
http://download1.parallels.com/Plesk/PP11/11.5/Doc/en-US/online/plesk-administrator-guide/index.htm?fileName=70669.htm%5D%5B1%5D
Check the status of PHP-FPM:
Should output something like this: