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
+14.9k Golang : How to check if IP address is in range
+50.6k Golang : Disable security check for HTTPS(SSL) with bad or expired certificate
+6.6k Golang : Muxing with Martini example
+14.9k JavaScript/JQuery : Detect or intercept enter key pressed example
+20.9k Golang : Sort and reverse sort a slice of strings
+10.3k Golang : Resolve domain name to IP4 and IP6 addresses.
+8.2k Golang : How to check if input string is a word?
+13.7k Golang : Compress and decompress file with compress/flate example
+8.8k Golang : How to capture return values from goroutines?
+11.7k Golang : Convert decimal number(integer) to IPv4 address
+9.9k Golang : Print how to use flag for your application example
+32.4k Golang : Regular Expression for alphanumeric and underscore