How does C5 handle errors/ Does .htaccess also redirect Apache errors?
Permalink
Good morning! I am a bit confused regarding using C5 in a cPanel environment and am hoping someone can shed some light on the issue.
I basically took on someone else's C5 site and had a bear of a time hunting down some custom code in the eCommerce plug in from their old developer. I eventually figured it out.
Over the course of this I realized that the client's error_log was totally empty within their cPanel account, and a quick look at it over SSH revealed... little.
So my main question is: does C5's .htaccess file redirect all Apache errors, too? Would this prevent certain errors from showing up in /usr/local/apache/logs/error_log too? (I happen to have root SSH on this box...)
I had the cache turned off, debugging set to 'Show', etc.
I also found (FINALLY) a quick and dirty Add-on that would throw 403/404 errors into the C5's general log: Logging Error Pages - 1.1.
Any help or maybe external sources would be awesome - thank you very much!
Joel
I basically took on someone else's C5 site and had a bear of a time hunting down some custom code in the eCommerce plug in from their old developer. I eventually figured it out.
Over the course of this I realized that the client's error_log was totally empty within their cPanel account, and a quick look at it over SSH revealed... little.
So my main question is: does C5's .htaccess file redirect all Apache errors, too? Would this prevent certain errors from showing up in /usr/local/apache/logs/error_log too? (I happen to have root SSH on this box...)
I had the cache turned off, debugging set to 'Show', etc.
I also found (FINALLY) a quick and dirty Add-on that would throw 403/404 errors into the C5's general log: Logging Error Pages - 1.1.
Any help or maybe external sources would be awesome - thank you very much!
Joel
they should go into the error_log or c5s log
Hey Mnkras,
404s were not found in public_html/error_log, cPanel Error Log, C5's backend Log, nor usr/local/apache/logs/error_log.
Like I said, I threw in the 404 Error add-on and then they showed up on C5's backend Log.
Danke for the reply and insight!
Joel
404s were not found in public_html/error_log, cPanel Error Log, C5's backend Log, nor usr/local/apache/logs/error_log.
Like I said, I threw in the 404 Error add-on and then they showed up on C5's backend Log.
Danke for the reply and insight!
Joel
Thats because 404's arn't considered errors really. they never show up in the error_log
Aaaah. Gotcha.
This appears to be a misunderstanding of errors and maybe how Apache handles them. Haha.
Thanks! I'll read up on it. :)
Joel
This appears to be a misunderstanding of errors and maybe how Apache handles them. Haha.
Thanks! I'll read up on it. :)
Joel