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
+6.1k Swift : substringWithRange() function example
+6.4k Golang : How to detect if a sentence ends with a punctuation?
+4.8k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+27.6k Golang : Detect (OS) Operating System
+4.8k Golang : Frobnicate or tweaking a string example
+7.9k Linux/Unix : fatal: the Postfix mail system is already running
+11.3k Golang : convert(cast) string to integer value
+15.3k Golang : Generate QR codes for Google Authenticator App and fix "Cannot interpret QR code" error
+8.8k Golang : Eroding and dilating image with OpenCV example
+20.9k Golang : Join arrays or slices example
+2.3k Golang : Fix go-cron set time not working issue
+13.5k Golang : Find network of an IP address