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
+28.2k Golang : Login(Authenticate) with Facebook example
+4.4k PHP : Fix Call to undefined function curl_init() error
+12.8k Golang : Chunk split or divide a string into smaller chunk example
+9.7k Golang : Create Temporary File
+11.7k Golang : Convert(cast) uintptr to string example
+4.6k Unix/Linux/MacOSx : Get local IP address
+4.6k Golang : ROT32768 (rotate by 0x80) UTF-8 strings example
+5.9k Golang : Normalize email to prevent multiple signups example
+12.1k Swift : Convert (cast) Int to String ?
+19.9k Golang : Get password from console input without echo or masked
+4.7k Golang : Configure crontab to poll every two minutes 8am to 6pm Monday to Friday
+9.5k Golang : Create matrix with Gonum Matrix package example