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
+6.8k Golang : Humanize and Titleize functions
+35.4k Golang : Strip slashes from string example
+12.2k Golang : Perform sanity checks on filename example
+14.9k Golang : Normalize unicode strings for comparison purpose
+16.4k Golang : convert string or integer to big.Int type
+15.1k Golang : How do I get the local IP (non-loopback) address ?
+25.5k Golang : Convert long hexadecimal with strconv.ParseUint example
+19.4k Golang : Get RGBA values of each image pixel
+5.5k Golang : fmt.Println prints out empty data from struct
+17.1k Golang : XML to JSON example
+33.8k Golang : All update packages with go get command
+9.3k Golang : How to find out similarity between two strings with Jaro-Winkler Distance?