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
+46.2k Golang : How to convert JSON string to map and slice
+6.8k Javascript : How to check a browser's Do Not Track status?
+5k Golang : How to write backslash in string?
+13.4k Golang : Submit web forms without browser by http.PostForm example
+6.2k Golang : Gorrila mux.Vars() function example
+38.7k Golang : How do I convert int to uint8?
+8.9k Golang : Compare files modify date example
+4.8k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+12k Golang : Calculate elapsed years or months since a date
+6k Golang : Squaring elements in array
+8.5k Golang : Eroding and dilating image with OpenCV example
+18.5k Golang : Reset or rewind io.Reader or io.Writer