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
+10.6k Linux : How to install driver for 600Mbps Dual Band Wifi USB Adapter
+7.9k Golang : HTTP Routing with Goji example
+10.1k Golang : Characters limiter example
+7k Golang : Handle Palindrome string with case sensitivity and unicode
+18.3k Golang : Measure http.Get() execution time
+9k CodeIgniter : Load different view for mobile devices
+6.4k Golang : How to stop user from directly running an executable file?
+4.2k Unix/Linux : secure copying between servers with SCP command examples
+15.6k Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
+9.9k Golang : How to determine a prime number?
+18.6k Android Studio : AlertDialog and EditText to get user string input example
+17.2k Golang : Logging with logrus