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
+22k Golang : How to run Golang application such as web server in the background or as daemon?
+3.5k Java : Get FX sentiment from website example
+5.6k Golang : Frobnicate or tweaking a string example
+10.5k Golang : Get local time and equivalent time in different time zone
+25.6k Golang : missing Mercurial command
+4.7k PHP : Extract part of a string starting from the middle
+37.9k Golang : Read a text file and replace certain words
+8.8k Golang : Sort lines of text example
+7k Golang : Get environment variable
+6.8k Golang : Decode XML data from RSS feed
+6.7k Default cipher that OpenSSL used to encrypt a PEM file
+4.6k MariaDB/MySQL : How to get version information