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
+22.7k Golang : Randomly pick an item from a slice/array example
+22.8k Golang : Get ASCII code from a key press(cross-platform) example
+9.4k Golang : Load ASN1 encoded DSA public key PEM file example
+30k Golang : Generate random string
+11.1k Golang : Characters limiter example
+6.4k Golang : Experimental emojis or emoticons icons programming language
+7.3k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image
+28k Golang : Change a file last modified date and time
+8.5k Golang : Random integer with rand.Seed() within a given range
+10.1k Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)
+14.9k Golang : Get timezone offset from date or timestamp
+8.4k Golang : On lambda, anonymous, inline functions and function literals