• 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

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