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
+9.8k Golang : Removes punctuation or defined delimiter from the user's input
+12.5k Golang : Compress and decompress file with compress/flate example
+19.2k Golang : Saving private and public key to files
+9.7k Golang : Fix - does not implement sort.Interface (missing Len method)
+12k Golang : Date and Time formatting
+7.8k Golang : Apply Histogram Equalization to color images
+4.9k Golang : Launching your executable inside a console under Linux
+8.4k Golang : Accessing content anonymously with Tor
+16.1k Golang : Find smallest number in array
+6k Golang : A simple forex opportunities scanner
+11.4k Golang : Exit, terminating or aborting a program
+15.8k Golang : XML to JSON example