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
+24.6k Golang : Time slice or date sort and reverse sort example
+9.5k Golang : Terminate-stay-resident or daemonize your program?
+20.7k Golang : Secure(TLS) connection between server and client
+14.1k Golang : Fix cannot use buffer (type bytes.Buffer) as type io.Writer(Write method has pointer receiver) error
+10.3k Golang : How to profile or log time spend on execution?
+6.8k Golang : Find the longest line of text example
+16.1k Golang : Generate universally unique identifier(UUID) example
+7.7k Golang : get the current working directory of a running program
+12.9k Golang : Convert IPv4 address to packed 32-bit binary format
+12.5k Elastic Search : Return all records (higher than default 10)
+18.9k Golang : How to make function callback or pass value from function as parameter?
+7.9k Golang : Get today's weekday name and calculate target day distance example