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
+32.7k Golang : convert(cast) bytes to string
+16.2k Golang : Clone with pointer and modify value
+16.6k Golang : Simple client server example
+4k MariaDB/MySQL : Form select statement or search query with Chinese characters
+4.8k Golang : Use NLP to get sentences for each paragraph example
+12.5k Golang : Check if an integer is negative or positive
+12.3k Golang : Get dimension(width and height) of image file
+6k Golang : Fibonacci number generator examples
+4.4k Golang : Return multiple values from function
+11.8k Golang : Convert(cast) uintptr to string example
+4.8k Golang : Configure crontab to poll every two minutes 8am to 6pm Monday to Friday
+7.2k Golang : HTTP Server Example