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
+8.8k Golang : HTTP Routing with Goji example
+9.4k Golang : Scramble and unscramble text message by randomly replacing words
+12.2k Golang : Get remaining text such as id or filename after last segment in URL path
+8.9k Golang : Sort lines of text example
+21.7k SSL : How to check if current certificate is sha1 or sha2
+13.2k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+6.9k How to let Facebook Login button redirect to a particular URL ?
+16.8k Golang : read gzipped http response
+14.4k Golang : How to pass map to html template and access the map's elements
+7.1k Golang : Squaring elements in array
+8.6k Python : Fix SyntaxError: Non-ASCII character in file, but no encoding declared
+6.4k PHP : Proper way to get UTF-8 character or string length