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
+5.5k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+20.6k Golang : How to get own program name during runtime ?
+22.6k Golang : Convert Unix timestamp to UTC timestamp
+4.2k Detect if Google Analytics and Developer Media are loaded properly or not
+45.3k Golang : Use wildcard patterns with filepath.Glob() example
+8.2k Golang : Trim everything onward after a word
+36.8k Golang : Validate IP address
+6.9k Golang : Check if password length meet the requirement
+11.9k How to tell if a binary(executable) file or web application is built with Golang?
+8.5k Golang : Count leading or ending zeros(any item of interest) example
+35.5k Golang : Strip slashes from string example
+5.8k Python : Print unicode escape characters and string