Linux/Unix/PHP : Restart PHP-FPM
Problem :
One of my server ran out of memory because of defunct php-fpm process. Need to restart php-fpm (FastCGI Process Manager) on Linux or Unix. How to do that?
Solution :
>/etc/init.d/php-fpm restart
or
>/etc/init.d/php5-fpm restart
or
>service php5-fpm restart
If the old process refused to go away. Kill it with :
>sudo pkill php5-fpm
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
+15.9k Golang : How to login and logout with JWT example
+10.2k Golang : Identifying Golang HTTP client request
+5.4k Golang : Return multiple values from function
+88.2k Golang : How to convert character to ASCII and back
+18.1k Golang : How to log each HTTP request to your web server?
+12.1k Golang : Find and draw contours with OpenCV example
+19.9k Golang : Append content to a file
+5k Golang : micron to centimeter example
+33.1k Delete a directory in Go
+10.2k Golang : Edge detection with Sobel method
+5.1k Golang : Display packages names during compilation
+7.6k Golang : How to stop user from directly running an executable file?