« Previous Next »

Thread: IIS PHP Errors

Last post 07-01-2009 10:22 AM by paulwratt. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-21-2009, 5:03 PM

    IIS PHP Errors

    Hello, I turned IIS on on my Windows Vista computer today, and Installed PHP. When I was testing some basic things (e.g phpinfor) everything was fine. When I writted an application I got a PHP error, but instead of displaying the PHP error, IIS displayed the 500 error page, how can I swap to the PHP error code, or let it debug?

     Gerritjan.

  • 06-29-2009, 6:28 AM In reply to

    Re: IIS PHP Errors

     I'd recommend you try enabling php logging in php.ini.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 06-29-2009, 3:44 PM In reply to

    Re: IIS PHP Errors

    brashquido:
    I'd recommend you try enabling php logging in php.ini.

    this is the second time I've seen you mention this, what exactly do you mean (Windows 7), php.ini is set, but I cant find a corresponding log file anywhere

    RE: the original post, if your using FastCGI, type "php-cgi" in a command prompt to make sure all DLL's are being loaded (which will cause a 500 error)

    Paul

    EDIT: found "your" answer here

     

  • 06-29-2009, 8:54 PM In reply to

    Re: IIS PHP Errors

    Running PHP at the command line is more or less the same as configuring logging. Basically it just gives you a much clearer insight into what your PHP processes are actually doing. The only issue with using PHP cli is that it takes IIS out of the loop, so if you have an IIS configuration issue with PHP using the cli will not help.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 07-01-2009, 10:22 AM In reply to

    Re: IIS PHP Errors

    brashquido:

    Running PHP at the command line is more or less the same as configuring logging. Basically it just gives you a much clearer insight into what your PHP processes are actually doing. The only issue with using PHP cli is that it takes IIS out of the loop, so if you have an IIS configuration issue with PHP using the cli will not help.

    true, but its also eliminates or (in my case) confirms php-cgi is having the problem

     I currently have a issue where php runs, log file is set, no error output, but php is crashing halfway through a page. I isolated the problem down to a certain line, but there is nothing wrong with that line.

     By default I have the php dev ini, so it was set to E_ALL | E_STRICT. If I change it to E_STRICT, then php will execute more lines before crashing (or freezing, giving a 500.0). The default ini has 128M, and the code is in the middle of maybe a 50-100 SQL CREATE ststements.

     My question here is: are there memory size issue (running out of allocated memory) with PHP, SQLite, and/or MySQL. (the current SQL statements are being piped through SQLite, I do not have a x64 install of MySQL, or a MS SQL server, to compare execution to..)

     Or: is there (also) a memory limit issue within IIS7 when dealing with FastCGI

    note: I can get the SQL statements to execute when I cut and paste into another page, but only if I set E_STRICT (not E_ALL)

    Paul

Page 1 of 1 (5 items)
Microsoft Communities