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
+11.3k Golang : Post data with url.Values{}
+6.8k Android Studio : Hello World example
+13.9k Golang : convert rune to unicode hexadecimal value and back to rune character
+14.7k Golang : Get URI segments by number and assign as variable example
+9.4k Golang : Detect Pascal, Kebab, Screaming Snake and Camel cases
+6.6k Golang : Check if password length meet the requirement
+9.4k Facebook : Getting the friends list with PHP return JSON format
+8.3k Useful methods to access blocked websites
+31.5k Golang : Get local IP and MAC address
+4.2k Golang : Converting individual Jawi alphabet to Rumi(Romanized) alphabet example
+7k Golang : A simple forex opportunities scanner
+7.7k Golang : Example of how to detect which type of script a word belongs to