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
+13k Android Studio : Password input and reveal password example
+5.9k Golang : Extract XML attribute data with attr field tag example
+19.7k Golang : Convert seconds to human readable time format example
+37.4k Golang : Comparing date or timestamp
+9.1k Golang : Find the length of big.Int variable example
+7.1k Android Studio : How to detect camera, activate and capture example
+8.9k Golang : Apply Histogram Equalization to color images
+7.3k Golang : Mapping Iban to Dunging alphabets
+5k JavaScript/JQuery : Redirect page examples
+6.7k Golang : How to call function inside template with template.FuncMap
+5.5k Javascript : How to replace HTML inside <div>?
+15.2k Golang : rune literal not terminated error