• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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