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
+6.7k Golang : Example of how to detect which type of script a word belongs to
+5.3k Golang : Create new color from command line parameters
+3.7k Java : Generate multiplication table example
+5.9k Golang : Check if password length meet the requirement
+11.4k Golang : calculate elapsed run time
+6.7k Golang : Get YouTube playlist
+8.8k Golang : Format strings to SEO friendly URL example
+10k Golang : Sieve of Eratosthenes algorithm
+25.5k Golang : Encrypt and decrypt data with AES crypto
+4.3k Python : Convert(cast) bytes to string example
+5.1k Golang : Generate multiplication table from an integer example
+7.5k Useful methods to access blocked websites