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
+14.7k Golang : Search folders for file recursively with wildcard support
+36.1k Golang : Convert(cast) int64 to string
+14.2k Golang : How to check if your program is running in a terminal
+13.3k Golang : Image to ASCII art example
+13.7k Golang: Pad right or print ending(suffix) zero or spaces in fmt.Printf example
+5.2k Golang : If else example and common mistake
+9.7k Golang : Ordinal and Ordinalize a given number to the English ordinal numeral
+14.5k Golang : Adding XML attributes to xml data or use attribute to differentiate a common tag name
+7k Golang : Dealing with postal or zip code example
+8.8k Golang : Simple histogram example
+26.5k Golang : Find files by extension
+3.8k Detect if Google Analytics and Developer Media are loaded properly or not