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.7k Golang : ffmpeg with os/exec.Command() returns non-zero status
+5.2k Golang : Pad file extension automagically
+9.2k Golang : Generate EAN barcode
+15.1k Golang : Accurate and reliable decimal calculations
+26.2k Golang : Calculate future date with time.Add() function
+14.3k Golang : How to check if your program is running in a terminal
+17.2k Golang : Check if IP address is version 4 or 6
+6.4k Golang : Map within a map example
+15.8k Golang : Read large file with bufio.Scanner cause token too long error
+25.9k Mac/Linux and Golang : Fix bind: address already in use error
+8.8k Golang : GMail API create and send draft with simple upload attachment example
+8k Golang : Randomize letters from a string example