Hi guys! I have Apache server on WinXP machine, and I have a very odd problem with it: My server was running for a couple of years and all work fine but 2 weeks ago Apache starts generate “HTTP/1.0 500 Internal Server Error†on any PHP errors. Pages without php errors work fine. PHP works fine by itself. When I’m trying to run any script with errors in console, PHP displays all errors correctly. But when I’m trying to run it through Apache, it doesn’t display anything and get me following response: HTTP/1.0 500 Internal Server Error Date: Tue, 19 Feb 2008 23:07:57 GMT Server: Apache/2.2.6 (Win32) PHP/5.2.4 X-Powered-By: PHP/5.2.4 HTML: And nothing else! I was trying to make it write errors in log file (error_log = "C:\PHP\error.log" in PHP.INI) – the same thing! If I run script from console, errors has been written in the log file. If I run scripts from Apache, nothing has been written at all. I’ve checked apache log files – nothing useful, only lines like this one: 127.0.0.30 - - [20/Feb/2008:02:07:57 +0300] "GET / HTTP/1.0" 500 – HTML: I was trying to uninstall Apache and PHP, trying to install various combination on Apache, Apache2, Apache2.2, PHP4 and PHP5, trying to use clear default config files – the same thing. I’ve already spent a week on this problem, have you any ideas? PS. Sorry for my English.
yes, phpinfo is working. PHP is working fine by itself. The problem is that Apache just generate 500 error on any php error and doesn't display anything. I have Kaspersky antivirus and Zonealarm firewall installed, but I've tryied to uninstall them, nothing happen.
It's really hard to find out then. Take a look at your script again. Is it requiring database access? Can you disable each part of script, until it's failed again?
The problem is not with particular script, even not with PHP. The problem is with Apache - it generate some internal error on any PHP errors.