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
+8.3k Mac OSX : Get a process/daemon status information
+12.1k Golang : Image to ASCII art example
+19.9k Golang : How to get time zone and load different time zone?
+4.4k Python : Delay with time.sleep() function example
+4.9k Golang : Launching your executable inside a console under Linux
+13.5k Golang : Find commonalities in two slices or arrays example
+4.6k Unix/Linux/MacOSx : Get local IP address
+5.8k Golang : How to fix html/template : "somefile" is undefined error?
+7.7k Golang : Accept any number of function arguments with three dots(...)
+8.7k Golang : Ordinal and Ordinalize a given number to the English ordinal numeral
+22.6k Golang : Generate MD5 checksum of a file
+4.8k Unix/Linux : How to test user agents blocked successfully ?