Very odd problem with 500 Internal Server Errors

Discussion in 'Apache' started by padre, Feb 19, 2008.

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

    PS. Sorry for my English.
     
    padre, Feb 19, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Do you have any security program running on your machine? Is phpinfo page working?
     
    gate2vn, Feb 19, 2008 IP
  3. padre

    padre Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    padre, Feb 19, 2008 IP
  4. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #4
    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?
     
    gate2vn, Feb 19, 2008 IP
  5. padre

    padre Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    padre, Feb 19, 2008 IP