# New to nginx question about php-fpm

**URL:** <https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663>\
**Category:** NGINX\
**Created:** [July 13, 2015, 9:15pm UTC](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663 "2015-07-13T21:15:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [July 13, 2015, 9:15pm UTC](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663/1 "2015-07-13T21:15:13Z")

</div>

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:

> **[New to nginx question about php-fpm](https://forum.nginx.org/read.php?2,260260,260260#msg-260260)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![adjc98](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c5a1d2/32.png) [@adjc98](https://www.ruby-forum.com/u/adjc98)\
**Post date:** [July 14, 2015, 2:09am UTC](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663/2 "2015-07-14T02:09:03Z")

</div>

Looks like you are using the cpXstack cpanel plugin.

Please read  
[https://support.sysally.net/projects/ndeploy/wiki/CpXstack\_and\_cpHstack\_users\_read\_this](https://support.sysally.net/projects/ndeploy/wiki/CpXstack_and_cpHstack_users_read_this)

---

<div class="post-metadata">

**Author:** ![adjc98](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c5a1d2/32.png) [@adjc98](https://www.ruby-forum.com/u/adjc98)\
**Post date:** [July 13, 2015, 9:17pm UTC](https://www.ruby-forum.com/t/new-to-nginx-question-about-php-fpm/242663/3 "2015-07-13T21:17:33Z")

</div>

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:

> **[Re: New to nginx question about php-fpm](https://forum.nginx.org/read.php?2,260260,260261#msg-260261)**
>
> 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...
