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.3k Golang : How to shuffle elements in array or slice?
+10.1k Golang : Use regular expression to get all upper case or lower case characters example
+20.3k nginx: [emerg] unknown directive "passenger_enabled"
+11k Google Maps URL parameters configuration
+18.4k Golang : Write file with io.WriteString
+7.9k Golang : Handle Palindrome string with case sensitivity and unicode
+16.4k Golang : How to implement two-factor authentication?
+5.7k Unix/Linux : Get reboot history or check when was the last reboot date
+11.7k Golang : convert(cast) float to string
+25.6k Golang : Daemonizing a simple web server process example
+8.2k Golang : Check if integer is power of four example