New to nginx question about php-fpm

I am new to nginx and had a question about php-fpm.

It seems that php-fpm is being restarted at random times. I am not sure
what is causing the restart, but when it does I am getting this in the
php-fpm.log

[12-Jul-2015 00:52:29] ERROR: An another FPM instance seems to already
listen on /opt/pifpm/fpmsockets/5.5.11.sock
[12-Jul-2015 00:52:29] ERROR: FPM initialization failed

I am assuming that the error is happening because the FPM processes are
not
being shut down correctly?

I am not sure how to find what is calling the FPM restart. Do you have
any
suggestions on how to find the initial restart call and how I can make
it
restart smoothly?

The server is a centos server with cpanel. I have not been able to
locate
the php-fpm.conf or the nginx.conf on my server.

I know you need more info than this, so please point me in the right
direction.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,260260,260260#msg-260260

Looks like you are using the cpXstack cpanel plugin.

Please read
https://support.sysally.net/projects/ndeploy/wiki/CpXstack_and_cpHstack_users_read_this

Found nginx conf:

server {
listen 184.154.39.58:80 default_server;
server_name _;
access_log off;
location / {

 proxy_send_timeout   90;
 proxy_read_timeout   90;

 proxy_buffer_size    4k;
 proxy_buffers     16 32k;
 proxy_busy_buffers_size 64k;
 proxy_temp_file_write_size 64k;

 proxy_connect_timeout 30s;

 proxy_redirect  http://184.154.39.58:9999   http://CPANELIP;
 proxy_pass   http://184.154.39.58:9999;
 proxy_set_header   Host   $host;
 proxy_set_header   X-Real-IP  $remote_addr;
 proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
}

}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,260260,260261#msg-260261

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs