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
+16.7k How to enable MariaDB/MySQL logs ?
+8k Yum Error: no such table: packages
+15.3k Golang : Generate QR codes for Google Authenticator App and fix "Cannot interpret QR code" error
+10.3k Golang : Characters limiter example
+21.5k Golang : Round float to precision example
+4.5k Golang : Get FX sentiment from website example
+50.3k Golang : Check if item is in slice/array
+20.8k Golang : Setting up/configure AWS credentials with official aws-sdk-go
+12.3k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+31.6k Golang : How to check if a date is within certain range?
+6.5k Golang : Check to see if *File is a file or directory
+10.3k Golang : Fix fmt.Scanf() on Windows will scan input twice problem