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
+5.5k Swift : Get substring with rangeOfString() function example
+9.2k Golang : Accessing content anonymously with Tor
+20.2k Golang : Pipe output from one os.Exec(shell command) to another command
+6.6k Golang : Get expvar(export variables) to work with multiplexer
+12.3k Golang : Arithmetic operation with numerical slices or arrays example
+51.1k Golang : Check if item is in slice/array
+4.9k Golang : Convert lines of string into list for delete and insert operation
+6.4k Elasticsearch : Shutdown a local node
+5.1k Python : Convert(cast) string to bytes example
+19.3k Golang : Example for DSA(Digital Signature Algorithm) package functions
+7.6k Golang : Generate human readable password
+13.4k Golang : Query string with space symbol %20 in between