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
+12.5k Golang : Validate email address
+20.2k Golang : How to run your code only once with sync.Once object
+10.6k Swift : Convert (cast) String to Integer
+8.2k Golang : Variadic function arguments sanity check example
+5.7k PHP : Convert CSV to JSON with YQL example
+33.8k Golang : How to check if slice or array is empty?
+17.9k How to enable MariaDB/MySQL logs ?
+8.6k Golang : Generate Datamatrix barcode
+4.9k Golang : How to pass data between controllers with JSON Web Token
+13.7k Golang : reCAPTCHA example
+17.8k Golang : Parse date string and convert to dd-mm-yyyy format
+12.8k Golang : Send data to /dev/null a.k.a blackhole with ioutil.Discard