Previous Next

Thread: include problem PHP5/IIS6

Last post 04-16-2008 2:53 PM by postmanerk. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 03-13-2008, 9:49 PM

    • Milchbazi
    • Not Ranked
    • Joined on 03-14-2008, 1:29 AM
    • Posts 2
    • Milchbazi

    include problem PHP5/IIS6

    Hello there,

    I have a problem where I just can't find a solution for. May be one of you experts know what to do. I've been looking for similar problems accross the internet and did actually find some, but they were rare and none of them provided a solution.

     
    Here is my problem:
    PHP 5 is running on IIS 6 really smooth. It just seems to work perfectly. But when I try to install a script like phpMyAdmin I get the following error:

     
    Warning: require_once(./libraries/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\Inetpub\phpMyAdmin\index.php on line 34

    Fatal error: require_once() [function.require]: Failed opening required './libraries/common.inc.php' (include_path='.;\Program Files\PHP5') in D:\Inetpub\phpMyAdmin\index.php on line 34

     

    I noticed that includes work as long as the path/to/file.php doesn't start with "./".

     

    include "D:\Inetpub\wwwroot\path/file.php" --- works
    include "path/file.php" --- works
    include "./path/file.php" --- doesn't work 

     

    The thing is that really all scripts I am supposed to install use the includes which don't work. And I don't think it's the right solution to change the scripts.


    Well, any idea is appreciated. Thanks!
    Milchbazi 

  • 03-16-2008, 11:53 PM In reply to

    • kul8
    • Not Ranked
    • Joined on 03-07-2008, 9:24 AM
    • Posts 6
    • kul8

    Re: include problem PHP5/IIS6

    It should be php working directory issue. 

  • 03-18-2008, 6:08 AM In reply to

    • brashquido
    • Top 25 Contributor
    • Joined on 05-22-2006, 12:31 AM
    • Australia
    • Posts 153
    • IIS MVPs
    • brashquido

    Re: include problem PHP5/IIS6

    Have you double checked your permissions? If IIS/PHP does not have sufficient permissions you'll get errors like this. Also, how do you have PHP configured? ISAPI, FastCGI, CGI?

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
  • 03-18-2008, 11:22 AM In reply to

    • Milchbazi
    • Not Ranked
    • Joined on 03-14-2008, 1:29 AM
    • Posts 2
    • Milchbazi

    Re: include problem PHP5/IIS6

    Well, actually I got it working last night. I reinstalled PHP (this time with the installer PHP 5.2.6) and now it works quite well. Or at least as far as I can say at this point of time. But thanks for your answers.

    BTW: I used ISAPI.
     

  • 04-16-2008, 2:53 PM In reply to

    • postmanerk
    • Not Ranked
    • Joined on 07-01-2002, 10:11 AM
    • Posts 1
    • postmanerk

    Re: include problem PHP5/IIS6

    Where did you get 5.2.6?  I am experiencing the same issue.  I goto PHP.net and the current version is 5.2.5.

    Eric

Page 1 of 1 (5 items)
Page view counter