PHP Installation issues on WinXP and IIS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ~john

    PHP Installation issues on WinXP and IIS

    I just installed PHP 5.1.4 on Windows XP and I am getting an error
    trying to load a simple phpinfo() script.


    Server Application Error
    The server has encountered an error while loading an application during
    the processing of your request. Please refer to the event log for more
    detail information. Please contact the server administrator for
    assistance.



    I checked the Event Viewer and I'm getting an error and a warning.

    error: Unable to start DCOM Server as /IWAM_MYNAME_LT1 . The error
    "access denied"

    warning: The server failed to load application /LM/W3SVC/1/ROOT. The
    error was "general access denied error"


    I have given Full Controll privileges to c:\php, c:\Inetpub\wwwr oot and
    the php.ini file to both the IUSR and IWAM accounts. I have set IIS to
    allow "Scripts and Executables". Application protection is "Medium
    (pooled). I'm not sure what to do at this point. I don't remember ever
    having this problem before. Any ideas what's going on?

    One note... I changed "Applicatio n Protection" in IIS to "Low (IIS
    Process" and now the PHP script loads... but restarting IIS with
    "issreset /restart" causes IIS to crash.

  • ImOk

    #2
    Re: PHP Installation issues on WinXP and IIS

    Did you set the path to point to c:\php?

    Did you define .php to point to c:\php\php-cgi.exe?

    Did you make appropriate changes to your INI file? E.g.
    cgi.force_redir ect = 0

    Id this fails, make a simple .ASP page and try it.



    ~john wrote:
    I just installed PHP 5.1.4 on Windows XP and I am getting an error
    trying to load a simple phpinfo() script.
    >
    >
    Server Application Error
    The server has encountered an error while loading an application during
    the processing of your request. Please refer to the event log for more
    detail information. Please contact the server administrator for
    assistance.
    >
    >
    >
    I checked the Event Viewer and I'm getting an error and a warning.
    >
    error: Unable to start DCOM Server as /IWAM_MYNAME_LT1 . The error
    "access denied"
    >
    warning: The server failed to load application /LM/W3SVC/1/ROOT. The
    error was "general access denied error"
    >
    >
    I have given Full Controll privileges to c:\php, c:\Inetpub\wwwr oot and
    the php.ini file to both the IUSR and IWAM accounts. I have set IIS to
    allow "Scripts and Executables". Application protection is "Medium
    (pooled). I'm not sure what to do at this point. I don't remember ever
    having this problem before. Any ideas what's going on?
    >
    One note... I changed "Applicatio n Protection" in IIS to "Low (IIS
    Process" and now the PHP script loads... but restarting IIS with
    "issreset /restart" causes IIS to crash.

    Comment

    • ~john

      #3
      Re: PHP Installation issues on WinXP and IIS


      ImOk wrote:
      Did you set the path to point to c:\php?
      Yes
      Did you define .php to point to c:\php\php-cgi.exe?
      No.... not sure why I would. I pointed IIS to php5isapi.dll for all
      ..php files
      Did you make appropriate changes to your INI file? E.g.
      cgi.force_redir ect = 0

      No, not sure what this does. I didn't see this in the install txt file?

      Id this fails, make a simple .ASP page and try it.

      Getting the same error for .asp pages.

      Comment

      • ImOk

        #4
        Re: PHP Installation issues on WinXP and IIS

        If ASP doesnt work then it's not PHP. My suggestion to go over to an
        IIS forum and ask them or do a search.
        No.... not sure why I would. I pointed IIS to php5isapi.dll for all
        .php files
        I have problems using the isapi with mysql. I dont know why.
        Did you make appropriate changes to your INI file? E.g.
        cgi.force_redir ect = 0
        If you dont have this it may be defaulted to 0 anyway. But it must be
        set to 0 accoring to the INI file.

        ~john wrote:
        ImOk wrote:
        Did you set the path to point to c:\php?
        >
        Yes
        >
        Did you define .php to point to c:\php\php-cgi.exe?
        >
        No.... not sure why I would. I pointed IIS to php5isapi.dll for all
        .php files
        >
        Did you make appropriate changes to your INI file? E.g.
        cgi.force_redir ect = 0
        >
        >
        No, not sure what this does. I didn't see this in the install txt file?
        >
        >
        Id this fails, make a simple .ASP page and try it.
        >
        >
        Getting the same error for .asp pages.

        Comment

        Working...