codemode
codemode

Reputation: 350

Check if PHP-FPM is working

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.

Upvotes: 3

Views: 22458

Answers (2)

codemode
codemode

Reputation: 350

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!

Upvotes: 4

bobbywebz
bobbywebz

Reputation: 63

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][1]

Check the status of PHP-FPM:

sudo service php5-fpm status

Should output something like this:

php5-fpm start/running, process 1094

Upvotes: 1

Related Questions