• 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.

Question open_basedir dont work ?

Woozy

New Pleskian
Hello everybody.
I have 2 domain. aaa.com and ccc.com.
i host the php script myscript.php into the domain ccc.com.

/var/www/vhosts/ccc.com/httpdocs/myscript.php

The script needs to have access to the /var/www/vhosts/aaa.com/httpdocs/includes/ directory.

I configure the open_basedir for the ccc.com domain :
/var/{:}{TMP}{/}:/var/www/vhosts/aaa.com/httpdocs/includes/

I try and (php code) :
file_exists('/var/www/vhosts/aaa.com/httpdocs/includes/test.txt');

this function return false (file dont exist)... but /var/www/vhosts/aaa.com/httpdocs/includes/test.txt exist.

Other test:

fopen('/var/www/vhosts/aaa.com/httpdocs/includes/test.txt', 'r+')

return : Warning: fopen(/var/www/vhosts/aaa.com/httpdocs/includes/test.txt): failed to open stream: Permission denied in /var/www/vhosts/ccc.com/httpdocs/myscript.php on line 216

Why?, my open_basedir is correctly configured, no ?

thx for your help.
 
Back
Top