• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

ISAPI and PHP

F

flyby

Guest
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
####
 
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
 
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
 
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
 
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
 
You can use server variable $_SERVER["DOCUMENT_ROOT"] to access to your sites home when you use ISAPI.
 
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 :(
 
!!!!
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 :(
 
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?
 
Back
Top