« Previous Next »

Thread: Error 500

Last post 01-02-2009 9:30 AM by ddcronkh. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 05-01-2008, 1:34 PM

    • ctruty
    • Not Ranked
    • Joined on 05-01-2008, 5:30 PM
    • Posts 2

    Error 500

    I am attempting to display a simple MySQL query via PHP of a table with 5 records in it.   I consistently get an Error 500 msg whenever I try to display it as shown below:

    Error Code: 0x00000000
    Notification: ExecuteRequestHandler
    Module: IsapiModule
    Requested URL: http://localhost:80/Test.php
    Physical Path: C:\inetpub\wwwroot\Test.php
    Logon User: Anonymous
    Logon Method: Anonymous
    Failed Request Tracing Log Directory: C:\inetpub\logs\FailedReqLogFiles
    Handler: PHP

    The inetpub error log shows the one and only following warning message:

    MODULE_SET_RESPONSE_ERROR_STATUS
    Warning ModuleName="IsapiModule", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="0", ErrorCode="The operation completed successfully. (0x0)", ConfigExceptionInfo=""

    I can query this table successfully from the MySQL Administrator:

    Here are the current software configuration parameters.

    OS: Windows Vista
    IIS: ver7
    PHP: ver 5.2.5
    MySQL: ver 5.0
    IIS is on localhost.

    I believe PHP is installed correctly because phpinfo() does display and it does show MySQL installed.
    The php.ini file has the mysql info set correctly including:
    - extensions enabled
    - extensions directory set
    - php_mysql.dll unremarked

    In the databases connection module while creating the page, I can successfully test the connection to the MYSQL databases and select databases.   That's as far as I can go.

    It appears to be a problem with the isapi module...

    Any help would be appreciated.  Thank you....

  • 05-01-2008, 8:45 PM In reply to

    • ctruty
    • Not Ranked
    • Joined on 05-01-2008, 5:30 PM
    • Posts 2

    Re: Error 500

    Below is the IIS trace log 5 steps prior to the error.  Does this tell anything other than the isapi module doesn't like something?

     

    50.
    n
    n
    i
    ISAPI_START
    00:27:31.586
    51.
    n
    n
    i
    CALL_ISAPI_EXTENSION DllName="C:\PHP\php5isapi.dll" 00:27:31.586
    52.
    n
    n
    —
    NOTIFY_MODULE_START ModuleName="IsapiFilterModule", Notification="MAP_PATH", fIsPostNotification="false", fIsCompletion="false" 00:27:31.586
    53.
    n
    n
    —
    NOTIFY_MODULE_END ModuleName="IsapiFilterModule", Notification="MAP_PATH", fIsPostNotificationEvent="false", NotificationStatus="NOTIFICATION_CONTINUE" 00:27:31.586
    54.
    n
    n
    r
    MODULE_SET_RESPONSE_ERROR_STATUS
    Warning
    ModuleName="IsapiModule", Notification="EXECUTE_REQUEST_HANDLER", HttpStatus="500", HttpReason="Internal Server Error", HttpSubStatus="0", ErrorCode="The operation completed successfully. (0x0)", ConfigExceptionInfo=""

     

  • 11-30-2008, 9:45 AM In reply to

    • ddcronkh
    • Not Ranked
    • Joined on 11-30-2008, 9:43 AM
    • Posts 2

    Re: Error 500

    I am having the same problem. I can find solutions to this for just PHP, but not if PHP is working and only the error only occurs when calling a MySQL database. Did you figure out what the problem was and how to solve it?

  • 01-01-2009, 3:09 PM In reply to

    • phpjeep
    • Not Ranked
    • Joined on 01-01-2009, 8:01 PM
    • Posts 1

    Re: Error 500

    I am very interested in the solution of this problem. I am running IIS7 with Server 2008 and I have different directories on one domain. for example coppermine and phpadmin works fine but if I install PHP code in another diroctory it comes with the 500 error.

    I am searching for 2 weeks now and I think I will skip server 2008 for the coming time.

    I installed 2 times the server, isntalled of course 2 times FastCGI, PHP, Mysql, but the error message and behaviour is still the same.

    How funny, I just discovered what was wrong, If you receive error 500, it is generated by IIS7, but it is caused by PHP and you had to set in de php ini file display_errrors=On. You will see php errors and you had to repair your script. I happens by old scripts which were written in PHP4 and now I am running with PHP5

     

  • 01-02-2009, 9:30 AM In reply to

    • ddcronkh
    • Not Ranked
    • Joined on 11-30-2008, 9:43 AM
    • Posts 2

    Re: Error 500

     Check the following things:

     1. In your php.ini file, make sure you have no single quotes.

    2.  Go to your application pool, select advanced settings and make sure "Enable 32 bit applications" is set to "True"

    3. Make sure that PHP is calling the correct location of the php.ini file.

Page 1 of 1 (5 items)
Microsoft Communities