The Apache Haus Forum

Forum Topics => Apache 2.4 => Topic started by: udayworldwide on December 17, 2023, 09:41:32 AM

Title: Error Message not being sent to browser but, being logged
Post by: udayworldwide on December 17, 2023, 09:41:32 AM
Dear all,
I have encountered a problem that apache httpd is logging any syntax error to log file, but, sends only "500 Internal Server Error" to browser. This is making it difficult to develop websites. I wish to handle error displaying in my PHP itself, not in apache. When tried to run python file, the same thing occured. Detailed error is being logged in the logfile, but, browser displays only Error 500.
Searched on google, bing etc, tried at serverfault, stackoverflow etc, but of no use. Gone through httpd.conf but could not find a fruitful solution.
Compared httpd.conf with the one that ships with xampp server but could not figure it out that which is causing this actual problem.
Title: Re: Error Message not being sent to browser but, being logged
Post by: mario on December 20, 2023, 09:06:45 AM
How do you run PHP? As module or oder fcgid?

how did you set your Log level? Like


ErrorLog "logs/error.log"
LogLevel warn fcgid:error