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
+8.8k Golang : Generate Codabar
+22.8k Golang : Print out struct values in string format
+17.2k How to enable MariaDB/MySQL logs ?
+15k Golang : invalid character ',' looking for beginning of value
+18k Golang : Find IP address from string
+22k Golang : How to read JPG(JPEG), GIF and PNG files ?
+13.4k Golang : How to check if a file is hidden?
+8k Your page has meta tags in the body instead of the head
+19.5k Golang : Convert seconds to human readable time format example
+7.1k Golang : Mapping Iban to Dunging alphabets
+9k Golang : Scramble and unscramble text message by randomly replacing words
+12.2k Swift : Convert (cast) Int or int32 value to CGFloat