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.4k Golang : How to convert strange string to JSON with json.MarshalIndent
+5.8k Golang : Decode XML data from RSS feed
+9.9k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+13.4k Golang : Accurate and reliable decimal calculations
+5.4k Android Studio : Hello World example
+15.3k Golang : File path independent of Operating System
+10.9k Golang : Get month name from date example
+23.3k Golang : Create PDF file from HTML file
+39.6k Golang : How to check if a string contains another sub-string?
+23.8k Golang : Convert uint value to string type