• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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