Error Message not being sent to browser but, being logged

Started by udayworldwide, December 17, 2023, 09:41:32 AM

Previous topic - Next topic


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.


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