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 Golang : Gorrila mux.Vars() function example
+12.3k Golang : Convert spaces to tabs and back to spaces example
+11.2k Golang : Arithmetic operation with numerical slices or arrays example
+13.8k Golang : Find location by IP address and display with Google Map
+5.7k Golang : Muxing with Martini example
+35.5k Upload multiple files with Go
+32.6k Golang : convert(cast) bytes to string
+13.6k Golang : Get all local users and print out their home directory, description and group id
+15.4k Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
+24.5k Mac/Linux and Golang : Fix bind: address already in use error
+5.7k Golang : Get expvar(export variables) to work with multiplexer
+6.8k Golang : Tell color name with OpenCV example