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
+22.8k Golang : Call function from another package
+5.7k Golang : How to fix html/template : "somefile" is undefined error?
+13.6k Golang : How to check if IP address is in range
+4.3k Golang : Return multiple values from function
+14.7k Golang : Read integer from file into array
+8.2k Golang : Extract or copy items from map based on value
+10.3k Golang : Generate DSA private, public key and PEM files example
+22.3k Golang : Generate MD5 checksum of a file
+7.2k Android Studio : Image button and button example
+16.6k Golang : Convert IPv4 address to decimal number(base 10) or integer
+23.6k Golang : Convert long hexadecimal with strconv.ParseUint example
+22k Golang : Fix type interface{} has no field or no methods and type assertions example