• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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