1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

ISAPI and PHP

Discussion in 'Plesk for Windows - 8.x and Older' started by flyby, May 8, 2005.

  1. flyby

    flyby Guest

    0
     
    What happens when i enable ISAPI on PHP?

    Becores when i do, my script fails (phpadsnew) whit hits error:
    #####
    Warning: main(./config.inc.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\domainname.com\subdomains\banner\httpdocs\adclick.php on line 26

    Fatal error: main(): Failed opening required './config.inc.php' (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\domainname.com\subdomains\banner\httpdocs\adclick.php on line 26
    ####
     
  2. robtbs

    robtbs Guest

    0
     
    the isapi installation is screwed... i dont know what theyv done, but i have been unsuccessful is getting rid of those errors.

    its almost as if its egnoring the php.ini include locations.
    stupid.

    one thing actually plesk is adding the isapi as a filter.....
    surely it should be run as an application extension....

    sooo annoying
     
  3. bonezpat

    bonezpat New Pleskian

    22
    53%
    Joined:
    May 29, 2005
    Messages:
    18
    Likes Received:
    0
    yes indeed with ISAPI nothing works like it shoud.

    hey to SW -> when will this be fixed?
    i am using currently 7.53

    Saludos
    Pat
     
  4. Ryan11433

    Ryan11433 Regular Pleskian

    25
    57%
    Joined:
    Jun 27, 2005
    Messages:
    184
    Likes Received:
    0
    Warning: main(./config.inc.php): failed to open stream: No such file or directory in C:\Inetpub\vhosts\domainname.com\subdomains\banner\httpdocs\adclick.php on line 26

    i need to know a fix for this.. if you know one please tell me.

    I'm currently using Plesk 7.5.4
     
  5. robtbs

    robtbs Guest

    0
     
    Ryan11433:
    The only fix is to use absolute paths when including files if your using the ISAPI version with plesk.

    so in your example include your file like so....

    include('C:\Inetpub\vhosts\domainname.com\subdomains\banner\httpdocs\config.inc.php');

    Maybe drop an email off to swsoft aswell, the more reports they get of this issue the more they might do about it.

    *Rob
     
  6. OlegB

    OlegB Guest

    0
     
    You can use server variable $_SERVER["DOCUMENT_ROOT"] to access to your sites home when you use ISAPI.
     
  7. robtbs

    robtbs Guest

    0
     
    Yeh cheers, for me thats a problem...
    because i would have to modifiy about about 200 include statements,in the 60 sites i have.

    i rarther large job :(
     
  8. Ryan11433

    Ryan11433 Regular Pleskian

    25
    57%
    Joined:
    Jun 27, 2005
    Messages:
    184
    Likes Received:
    0
    is there a other way? it is possible cuz it works right in PHP5.
     
  9. robtbs

    robtbs Guest

    0
     
    !!!!
    It must be something to do with php.ini then.
    iv check my includes path's they are normal for windows.

    So im stumped im afraid :(
     
  10. Tim81

    Tim81 Guest

    0
     
    Is there any solution?

    I have the same problem. Now changed from ISAPI to CGI mode and it works. But the performance is worse.

    I tried to install a php forum. If I install it in a subdirectory of the httpdocs folder it works, but if i put the script files directly into the httpdocs folder the error message from flyby above appears.

    Any suggestions?
     
Loading...