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
+9.2k Golang : How to get quoted string into another string?
+46.2k Golang : How to convert JSON string to map and slice
+10.5k Golang : Sort and reverse sort a slice of runes
+4.8k Fix fatal error: evacuation not done in time problem
+8.3k Golang : Changing a RGBA image number of channels with OpenCV
+6k Golang : How to detect if a sentence ends with a punctuation?
+10.5k Golang : Get remaining text such as id or filename after last segment in URL path
+25.1k Golang : Calculate future date with time.Add() function
+12.9k Golang : Check if a file exist or not
+9.3k Generate Random number with math/rand in Go
+9.1k Golang : Get login name from environment and prompt for password
+19.5k Golang : Clean up null characters from input data