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.5k Golang : How to convert a number to words
+17k Golang : Read integer from file into array
+28.8k Get file path of temporary file in Go
+18.1k Golang : How to log each HTTP request to your web server?
+24.7k Golang : Time slice or date sort and reverse sort example
+8.8k Golang : Combine slices but preserve order example
+4.8k Linux : sudo yum updates not working
+20.3k Golang : How to get struct tag and use field name to retrieve data?
+5.9k Linux : Disable and enable IPv4 forwarding
+7.6k Golang : How to handle file size larger than available memory panic issue
+30k Golang : Get and Set User-Agent examples