Welcome! Log In Create A New Profile

Advanced

How to handle backend crashes in nginx

Posted by Piki 
How to handle backend crashes in nginx
October 07, 2012 10:35AM
I have been an nginx fan for nearly a year, and have yet to experience any crashing. However, I occassionally suffer nightmares with my php backend. php-fpm usually runs fine, but will crash on occasion.

Is it possible to make nginx serve up html files instead if php-fpm crashes?

I already plan to put a script to detect restart php-fpm whenever it's crashed, but the script isn't going to run continously, and it's possible that something truly horrifying happens to completely stop php-fpm until I'm able to look at it. Hopefully that never happens, but it doesn't hurt to have a safeguard in place ;-)

--
Piki
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready