Nginx : Restart php-fpm
While doing some upgrading and maintenance work on one of my Digital Ocean droplets. I noticed that there is some 'defunct' process running around since last year. So without thinking much, I decided to kill -9
the process... and guess what... the next thing is that my Nginx web server starting to show 502 Bad gateway error
.
Apparently, the process that I've killed earlier is not defunct but it is the important fpm-php
service.
To restart the fpm-php
... use one of these commands
/etc/init.d/php-fpm restart
or
service php-fpm restart
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+7.6k Golang : Scanf function weird error in Windows
+34.9k Golang : How to stream file to client(browser) or write to http.ResponseWriter?
+25.8k Golang : Generate MD5 checksum of a file
+17.7k Golang : Find smallest number in array
+8.5k Golang : Convert word to its plural form example
+6.8k Golang : How to determine if request or crawl is from Google robots
+19k Golang : Read input from console line
+6.3k Linux/Unix : Commands that you need to be careful about
+5.7k Unix/Linux : How to find out the hard disk size?
+11.2k Golang : Read until certain character to break for loop
+7.6k Golang : Shuffle strings array