I'm running nginx, and fastcgi to run a wordpress blog.
After a while of running, I am getting 502 bad gateway errors. If i reboot the server things work fine.
Other sites that are running on nginx are not effected (they are not php based), so I just figured out it must be the fastcgi process after looking at the log files saying the upstream client 127.0.0.1 is not responding.
How to I restart this? Is there a special log file for this fastcgi process?
It depends of the Distro/Type but it is probably:
Anyway restarting service is not a solution, you should find the problem why do the upstream is not responding. You may provide some logs to clarify the issue.
Depends on the install:
In Ubuntu every site have a process in
So, to restart a PHP domain proccess type: