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.9k Golang : Command line ticker to show work in progress
+5.9k Fix yum-complete-transaction error
+12.9k Golang : Pass database connection to function called from another package and HTTP Handler
+7.6k Golang : Example of custom handler for Gorilla's Path usage.
+9.6k Golang : Launch Mac OS X Preview (or other OS) application from your program example
+15.4k Golang : Save(pipe) HTTP response into a file
+7k Get Facebook friends working in same company
+31k error: trying to remove "yum", which is protected
+10.4k Golang : Wait and sync.WaitGroup example
+12.5k Golang : List running EC2 instances and descriptions
+32.4k Golang : Convert []string to []byte examples
+12.4k Golang : Find and draw contours with OpenCV example