Loans - Company Reports - Remortgages - Gas Suppliers - Loans

PDA

View Full Version : Very odd problem with 500 Internal Server Errors


padre
Feb 19th 2008, 4:30 pm
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

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 –

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:mad::mad::mad:, have you any ideas?

PS. Sorry for my English.

gate2vn
Feb 19th 2008, 6:23 pm
Do you have any security program running on your machine? Is phpinfo page working?

padre
Feb 19th 2008, 6:30 pm
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.

gate2vn
Feb 19th 2008, 7:09 pm
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?

padre
Feb 19th 2008, 7:15 pm
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.