« Previous Next »

Thread: PHP 5.3 setup error 500

Last post 07-10-2009 10:15 PM by Aeschulus. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 07-09-2009, 9:28 AM

    • Jens2
    • Not Ranked
    • Joined on 07-09-2009, 1:14 PM
    • Posts 2

    PHP 5.3 setup error 500

     Hi everybody,

     I'm desperately trying to get PHP 5.3 running on a Windows Server 2008 x64 SP2 (fully patched so far).

     The first attempts were to click next until the PHP installer finished and have it setup the IIS fastcgi module. I got that working somehow by doing some modifications to the php.ini.

    What did not work here were any modules. The configuration file pointed the extension dir to "C:\Program Files (x64)\PHP\extension", but when viewing a phpinfo() output it said "C:\PHP5". Well, I didn't get that one fixed so I thought maybe it didn't like spaces in its path.

    I uninstalled it and installed it again to "C:\PHP". Same situation.

    Uninstall again and installed to "C:\PHP5". -> Extensions are working now (when I do a command line output of phpinfo() ).

    But opening a minimal php script via browser with this content:

     <?php

    phpinfo();

    ?>

    I just get a 500 error. Even when I open the page from the webserver I don't get a more detailed output.

    Filesystem permissions are set to give iusr read access.

    I sticked to these manuals:

    • http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70 
    • http://www.trainsignaltraining.com/iis-7-install-fastcgi-php/2008-09-04/

    So I took care of these settings:

    • fastcgi.impersonate = 1
    • cgi.fix_pathinfo=1
    • cgi.force_redirect = 0
    • open_basedir=d:\wwwroot
    I have no idea what else to try. Google tells me almost all 500 errors seem to be fixed by the above settings.
  • 07-09-2009, 12:01 PM In reply to

    Re: PHP 5.3 setup error 500

    Please generate the log file from setup (you can do it using command MSIEXEC) and send at don dot raman at microsoft dot com.

    Can you also confirm the below two things:

    1. FASTCGI handler mapping is done correctly after the PHP installation

    2. index.php gets added to default document.

    You can look at these by opening INETMGR. If you look under IIS section, you will see "Default Document". Double click and ensure that index.php is listed there. Also double click on "Handler Mappings" and see that you have proper handler mapping for *.php.

    Thanks,

    Don.

  • 07-09-2009, 12:45 PM In reply to

    • Jens2
    • Not Ranked
    • Joined on 07-09-2009, 1:14 PM
    • Posts 2

    Re: PHP 5.3 setup error 500

     Hi Don,

     I have no idea why, but it's working now. After I did a reinstallation to provide you with the desired log file it still didn't work (IIS was shut down during the installation).

    What I did afterwards was only to set a log file path in php.ini and set the correct timezone. Afterwards it worked. I have no idea why.
    Deactivating both of these options again didn't "unfix" it again.

    Would you like to investigate further? If not thank you very much!

  • 07-09-2009, 2:44 PM In reply to

    Re: PHP 5.3 setup error 500

    Your log files and screenshot looks good. Yes, setting of timezone is a known thing and changing the PHP.INI to set the timezone is the right thing to do. At this point I cannot tell what problem you ran into. Please do let me know if you run into this again and send the log files and screenshots.

    Thanks,

    Don.

  • 07-10-2009, 10:15 PM In reply to

    • Aeschulus
    • Not Ranked
    • Joined on 07-10-2009, 10:14 PM
    • Posts 1

    Re: PHP 5.3 setup error 500

     Changing the timezone worked for me as well - thanks! You can find the timezone information here: http://us.php.net/manual/en/timezones.america.php

Page 1 of 1 (5 items)