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
+23.2k Golang : Smarter Error Handling with strings.Contains()
+8.6k Golang : Create S3 bucket with official aws-sdk-go package
+38.8k Golang : How to check if a string contains another sub-string?
+4k Golang & Javascript : How to save cropped image to file on server
+9.1k Golang : Setup API server or gateway with Caddy and http.ListenAndServe() function example
+7.6k Golang : Flip coin example
+13.5k Golang : Find file size(disk usage) with filepath.Walk
+8.6k Golang : Secure file deletion with wipe example
+35.9k Golang : Convert []byte to image
+6.1k Swift : Convert (cast) String to Double
+5.9k Golang : Scan files for certain pattern and rename part of the files