locked
Troubleshooting HTTP 500 Internal server error RRS feed

  • Question

  • User858526683 posted
    Getting the HTTP 500 Internal server error. Installing the latest 5.3 on a IIS 7.5 Windows 7 box. The localhost/phpinfo.php I created manually works fine in the IE browser. The localhost/myfolder/myapp.php fails with HTTP 500 Internal server error. Have set the php_logging on; checked the c:\windows\temp\php-errors.txt; IIS/PHP seem to be running fine. Disabled Friendly HTTP error messages in IE still cannot see what exact is causing the error. Tried running from a command prompt c:\php\php-cgi.exe -v "C:\Inetpub\wwwroot\myfolder/myapp.php" get the same error HTTP 500 Internal Server error but no details on what its not liking. How do I troubleshoot this?
    Friday, January 14, 2011 12:15 PM

All replies

  • User-1672167363 posted

    Hello,

    http://learn.iis.net/page.aspx/944/using-php-manager-for-iis-to-setup-and-configure-php/

    Common problems with PHP is the post install steps setting the Time / Zone in the php.ini file

    Extensions and the settings to display error messages. For Security reasons error messages for PHP IIS Server are turned off

    to protect the server and windows system. For more information read the install notes or the PHP Security and install guides.

    Martin :)

    Friday, January 14, 2011 12:32 PM
  • User858526683 posted
    Found out what was causing this. I uninstalled; installed again and then this time chose the required extensions. And now the app works.
    Friday, January 14, 2011 2:18 PM
  • User287301797 posted

    I'm having the same 500 server error.

    I tried following your advice including updating mysql to 5.3. Unfortunately, these directions may be outdated and I'm having an issue finding the tab to edit permissions.

    However, I did change permissions on on the NTFS and tried to upload my files after the change...no change.

    Any advice?....Thanks.

    Saturday, January 7, 2012 5:20 PM
  • User-1672167363 posted

    Hello,

    The PHP Manager http://learn.iis.net/page.aspx/944/using-php-manager-for-iis-to-setup-and-configure-php/ 

    after install can help with fixing problems with settings and configuration.

    With the install of the PHP Manager the SQL Driver for PHP  Extension

     http://learn.iis.net/page.aspx/699/install-the-sql-server-driver-for-php/  is easier to get working.

    The http 500 error is an interal error and is one of many possible problems.

    For Trouble shooting and fixing problems and HTTP 500 errors.

    More information is in the Status Substatus 500.XX  this list http://support.microsoft.com/kb/943891 

    descriptions & Suggestions

    and another list http://support.microsoft.com/kb/820729 http.sys errors and logging.

    The PHP Manager does fix many of the know problems and issues.

    HTH

    Martin

     

     

     

     

     

    Saturday, January 7, 2012 6:42 PM
  • User-1672167363 posted

    Hello,

    The PHP Manager http://learn.iis.net/page.aspx/944/using-php-manager-for-iis-to-setup-and-configure-php/ 

    after install can help with fixing problems with settings and configuration.

    With the install of the PHP Manager the SQL Driver for PHP  Extension

     http://learn.iis.net/page.aspx/699/install-the-sql-server-driver-for-php/  is easier to get working.

    To Install the Microsoft SQL Server PHP Driver:

    Microsoft SQL Server PHP Driver use the Web Platform Tool for install.

     http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=20098 SQLSRV driver release version 2.0.

    Microsoft Drivers 3.0 for SQL Server for PHP manuall installer. Web Platform Tool will install release versions.

     http://www.microsoft.com/download/en/details.aspx?id=17308 SQL Server for PHP CTP1 for manual installs.

    You tried the following steps:

    "I uninstalled; installed again. Then this time chose the required extensions.

    The PHP was installed differently Windows Installer or manual install. 

    Different versions from Web Platform Tool updates to the latested release and automates the install steps.

    Unfortunately these directions may be outdated.

    Yes this is a problem with Forum post vs IIS Net guides.

     

     I'm having an issue finding the tab to edit permissions.

    You  did change permissions on on the NTFS.

    You tried to upload my files after the change...no change.

    The items here are important and need to be answered in another post / thread. 

    Any advice this updated reply and the new post for answers.

    The http 500 error is an interal error and is one of many possible problems.

    For Trouble shooting and fixing problems and HTTP 500 errors.

    More information is in the Status Substatus 500.XX  this list http://support.microsoft.com/kb/943891 

    descriptions & Suggestions

    and another list http://support.microsoft.com/kb/820729 http.sys errors and logging.

    The details from both lists with Status Codes 500.XX can help with fixing problems.

    IMO: Doing  uninstalls then reinstalls may fix some problems not all.

    IMO: For IIS Server PHP MySQL Server and others can each have problems.

    IMO: I suggest it is better take the time to fix permissions or a settings instead spending time on reinstalls.

    IMO: The current  IIS Server versions 7.0 .5 have been designed to make this easier.

    The PHP Manager does fix many of the know problems and issues.

    HTH

    Martin

     

     

     

     

     

    Saturday, January 7, 2012 6:42 PM