« Previous Next »

Thread: Windows 7 64Bit - Error 500.0 0x00000000

Last post 11-17-2009 1:32 AM by don.raman. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-27-2009, 9:37 AM

    • BigIain
    • Not Ranked
    • Joined on 10-27-2009, 1:32 PM
    • Posts 2

    Windows 7 64Bit - Error 500.0 0x00000000

     Hi,

     Having installed Windows 7 Home Premium, I set about installing PHP onto IIS7 using the Web Platform Installer. I tested the installation using the usual phpinfo script but get the following error:

     

    HTTP Error 500.0 - Internal Server Error

    The page cannot be displayed because an internal server error has occurred.

    ModuleFastCgiModule
    NotificationExecuteRequestHandler
    HandlerPHP_via_FastCGI
    Error Code0x00000000
    Requested URLhttp://localhost:80/php.php
    Physical PathC:\inetpub\wwwroot\php.php
    Logon MethodAnonymous
    Logon UserAnonymous

     

    I had this running on the RC1 version of Windows 7, but had the same issue and annoyingly can't remember how I went about fixing it.

    I've tried removing and reinstalling PHP, restarted the web server and even threw away all my security by assigning "Everyone" full access on the relevent directories. All gives the same error. I also tried to enable the option to run 32 bit applications within the web server, to no avail.

    So I'm out of ideas. Can someone help?









     

     

  • 10-27-2009, 11:45 PM In reply to

    Re: Windows 7 64Bit - Error 500.0 0x00000000

    Hi,

    Can you run the below command:

    %WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi /text:*

    Also run:

    %WINDIR%\system32\inetsrv\appcmd.exe list config /section:handlers /text:* | findstr /i PHP

    And paste the output of each of these.

    Now run,

    "C:\Program Files (x86)\PHP\php-cgi.exe" <path to phpinfo page>

    and tell what the output is. It should ideally print the HTML output containing the result of PHPINFO function.

    Thanks,

    Don.

  • 10-28-2009, 7:08 AM In reply to

    • BigIain
    • Not Ranked
    • Joined on 10-27-2009, 1:32 PM
    • Posts 2

    Re: Windows 7 64Bit - Error 500.0 0x00000000

    Hi Don, thanks for getting back to me so quickly.

    I recreated the test file last night (phpinfo) and it seems to have started working, so I think it may be an issue with the PHP code.

    Last night I was using <?php phpinfo(); ?> and got the error.

    Today, I tried
    <?php
    phpinfo();
    ?>

    And it seems to be working fine.

    Some of my other PHP scripts though are still giving the same error though, when they were working perfectly last time. I'll look into this further and post back the info you've requested if it still fails to work.

  • 11-12-2009, 1:52 AM In reply to

    Re: Windows 7 64Bit - Error 500.0 0x00000000

    Don, I am also facing the same problem though the phpinfo file is loading fine while trying to run any PHP applications it is throwing the error. I am running this on Windows 2008 Server (32 Bit) %WINDIR%\system32\inetsrv\appcmd.exe list config /section:fastcgi /text:* ============================================================================ CONFIG CONFIG.SECTION:"system.webServer/fastCgi" path:"MACHINE/WEBROOT/APPHOST" overrideMode:"Inherit" locked:"false" [system.webServer/fastCgi] [application] fullPath:"C:\Program Files\PHP\php-cgi.exe" arguments:"" maxInstances:"4" idleTimeout:"300" activityTimeout:"300" requestTimeout:"600" instanceMaxRequests:"10000" protocol:"NamedPipe" queueLength:"1000" flushNamedPipe:"false" rapidFailsPerMinute:"10" [environmentVariables] [environmentVariable] name:"PHP_FCGI_MAX_REQUESTS" value:"10000" [environmentVariable] name:"PHPRC" value:"C:\Program Files\PHP\" %WINDIR%\system32\inetsrv\appcmd.exe list config /section:handlers /text:* | findstr /i PHP ============================================================================================ name:"PHPviaFastCGI" path:"*.php" scriptProcessor:"C:\Program Files\PHP\php-cgi.exe" name:"PHP_via_FastCGI" path:"*.php" scriptProcessor:"C:\Program Files\PHP\php-cgi.exe" ======================================================================================= Error Details ======================================================================================= HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred. Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x00000000 Requested URL http://localhost:80/OpenInviter/example.php Physical Path C:\inetpub\wwwroot\OpenInviter\example.php Logon Method Anonymous Logon User Anonymous
  • 11-17-2009, 1:32 AM In reply to

    Re: Windows 7 64Bit - Error 500.0 0x00000000

    Hi,

    If your simple PHPNFO page is working fine, this means your PHP is installed correctly and you are all set. Can you tell what PHP version you are running? Ideally this means your example.php has got some error. The best way to debug this is to run example.php from command line and this will display the error.

    If you have error_log INI directive set in PHP.INI file, please look at the file and see if there are any errors there.

    Hope this helps.

    Thanks,

    Don.

Page 1 of 1 (5 items)
Microsoft Communities