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
+14.4k Android Studio : Use image as AlertDialog title with custom layout example
+7.1k Golang : Get environment variable
+14k Golang : Fix cannot use buffer (type bytes.Buffer) as type io.Writer(Write method has pointer receiver) error
+5.7k List of Golang XML tutorials
+7.7k Golang : Mapping Iban to Dunging alphabets
+16.4k CodeIgniter/PHP : Create directory if does not exist example
+4.8k Javascript : How to get width and height of a div?
+11.1k Golang : Web routing/multiplex example
+26.3k Golang : Calculate future date with time.Add() function
+12k Golang : Sort and reverse sort a slice of runes
+33.9k Golang : Call a function after some delay(time.Sleep and Tick)
+30.6k Golang : Remove characters from string example