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
+15.3k Golang : How to make function callback or pass value from function as parameter?
+4.5k Web : How to see your website from different countries?
+23.4k Golang : Move file to another directory
+6.9k Golang : Get currencies exchange rates example
+15.3k Golang : Print leading(padding) zero or spaces in fmt.Printf?
+8.4k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+9.2k Golang : How to remove certain lines from a file
+8.6k Golang : How to detect a server/machine network interface capabilities?
+2.7k Golang : How to search a list of records or data structures
+4k Golang : Break string into a slice of characters example
+11.6k Golang : Defer function inside init()
+11.1k Golang : Get checkbox or extract multipart form data value example