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
+19.6k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+8.9k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?
+62.4k Golang : Convert HTTP Response body to string
+15.3k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+8.9k nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
+9k Golang : Generate EAN barcode
+9.4k Golang : Copy map(hash table) example
+25k Golang : Convert uint value to string type
+6.7k Golang : Decode XML data from RSS feed
+4.6k Fix Google Analytics Redundant Hostnames problem
+35k Golang : Integer is between a range
+7.3k Golang : Detect sample rate, channels or latency with PortAudio