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
+17.5k Convert JSON to CSV in Golang
+5k Golang : PGX CopyFrom to insert rows into Postgres database
+18.3k Golang : Example for RSA package functions
+8.9k Golang : Build and compile multiple source files
+6.8k Get Facebook friends working in same company
+8.2k Swift : Convert (cast) Character to Integer?
+6.8k Golang : How to setup a disk space used monitoring service with Telegram bot
+4.9k Golang : Get a list of crosses(instruments) available to trade from Oanda account
+9k Golang : Get curl -I or head data from URL example
+4.7k PHP : Extract part of a string starting from the middle
+5.6k Fix yum-complete-transaction error
+20.4k Golang : Pipe output from one os.Exec(shell command) to another command