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
+12k Golang : Pagination with go-paginator configuration example
+7.4k Golang : Rename part of filename
+28.3k Golang : Change a file last modified date and time
+6.2k Golang : Extract sub-strings
+9.1k Golang : How to control fmt or log print format?
+8.9k Golang : Get SPF and DMARC from email headers to fight spam
+4.7k Fix Google Analytics Redundant Hostnames problem
+36k Golang : Save image to PNG, JPEG or GIF format.
+15.1k Golang : Accurate and reliable decimal calculations
+25.6k Golang : How to write CSV data to file
+17.5k Convert JSON to CSV in Golang
+6.3k Golang : Handling image beyond OpenCV video capture boundary