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
+30.3k Golang : Interpolating or substituting variables in string examples
+5.8k Golang : Debug with Godebug
+9.4k Golang : List available AWS regions
+50.8k Golang : Check if item is in slice/array
+34.5k Golang : Upload and download file to/from AWS S3
+4.1k Linux/MacOSX : Search and delete files by extension
+12.5k Python : Convert IPv6 address to decimal and back to IPv6
+4.4k Unix/Linux : How to pipe/save output of a command to file?
+9.2k Golang : Quadratic example
+7.7k Golang : Variadic function arguments sanity check example
+6k Golang : Break string into a slice of characters example