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.2k Golang : Get expvar(export variables) to work with multiplexer
+17.7k Golang : Convert date string to variants of time.Time type examples
+4.5k Javascript : Generate random key with specific length
+26.7k Golang : Remove characters from string example
+9.7k Golang : Clean formatting/indenting or pretty print JSON result
+8.9k Golang : Secure file deletion with wipe example
+13.3k Golang : How to check if input from os.Args is integer?
+10.8k Golang : Get dimension(width and height) of image file
+4k PHP : Convert CSV to JSON with YQL example
+5.5k Golang : Scanf function weird error in Windows
+16.9k Golang : Reset or rewind io.Reader or io.Writer
+11k Golang : Get constant name from value