PHP on IIS HTTP request failed! HTTP/1.1 401 Unauthorized in

Discussion in 'PHP' started by pwhite, Jul 4, 2007.

  1. #1
    Hi,

    I'm running PHP 5 on IIS and I get the following error when I try an include() function.

    Warning: include(https://is-dc/helpdesk/companyList.php?expand=1) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in C:\Inetpub\wwwroot\helpdesk\index.php on line 61

    Warning: include() [function.include]: Failed opening 'https://is-dc/helpdesk/companyList.php?expand=1' for inclusion (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\helpdesk\index.php on line 61

    The script works fine on my local machine with Apache so it seems to be an IIS problem - any ideas?
     
    pwhite, Jul 4, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    could it be related to file permissions, and iis running as a different set of groups (or user) ?. I am not that failier with IIS, but would also check what user php is getting executed as well.
     
    powerspike, Jul 4, 2007 IP
  3. pwhite

    pwhite Peon

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    still no luck, i've just noticed its looking for include_path='.;C:\php5\pear' and there is nothing in that directory on the server.
     
    pwhite, Jul 4, 2007 IP
  4. MatthewN

    MatthewN Well-Known Member

    Messages:
    859
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    195
    #4
    Try running the script in ISAPI mode.
     
    MatthewN, Jul 4, 2007 IP
  5. pwhite

    pwhite Peon

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just checked and its already running in ISAPI mode
     
    pwhite, Jul 4, 2007 IP