pkromer
asked on
get an email when web server has a 500 error
Is it possible to set up a script on an Apache web server to email me whenever a 500 error happens? How would I do that? We use Symfony and if there's a code failure I want to know about it bright away... the Symfony logs don't show a 500 error but the server logs do.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Fail2Ban == One of the great unknown work horses of the Internet.
@pkromer, if you have any problems accomplishing this, open another question about...
"How to use Fail2Ban to catch Apache 500 errors, then email a notification list."
"How to use Fail2Ban to catch Apache 500 errors, then email a notification list."
ASKER
Turns out my web host (Pair Networks) already has Fail2ban installed on our dedicated server, they do that for security purposes. Im asking them to create a mail rule. Thanks for pointing it out, looks like a really good thing to have on the server.
Perfect!
You're welcome!
Once the create the Fail2Ban recipe for you, have them send you a copy, so you can keep it on file for when you change hosting.
You're welcome!
Once the create the Fail2Ban recipe for you, have them send you a copy, so you can keep it on file for when you change hosting.
ASKER
well crap, my web hosts copy cant be used for this, so I have to install my own copy to do this. Ill open another question per your suggestion above.