Hello,
We have deux websites we must exchange data on Plesk Onyx.
Until today, there was no problem for a site to access informations/files of the second and vice versa.
Two websites were with PHP 5.3.3 by OSVendor.
Today, we upgraded the first website to PHP 5.6.
Everything works except for access to files from the second site. There is an open_basedir restriction.
mod_fcgid: stderr: PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/vhosts/website1/httpdocs/app/../../../website2/httpdocs/cata/1860-AFpBFTRXVn/cata.pdf) is not within the allowed path(s): (/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp) in /var/www/vhosts/website1/httpdocs/web/thefile/ on line 72, referer: https://website1/work/?t=3
But i don't why? All seems to be ok for open_basedir:
For the first website:
/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp
For the second website:
/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp
Safe_mode is off for the two websites.
The problem now persists when I return to the PHP 5.3.3.
So please help me?
We have deux websites we must exchange data on Plesk Onyx.
Until today, there was no problem for a site to access informations/files of the second and vice versa.
Two websites were with PHP 5.3.3 by OSVendor.
Today, we upgraded the first website to PHP 5.6.
Everything works except for access to files from the second site. There is an open_basedir restriction.
mod_fcgid: stderr: PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/vhosts/website1/httpdocs/app/../../../website2/httpdocs/cata/1860-AFpBFTRXVn/cata.pdf) is not within the allowed path(s): (/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp) in /var/www/vhosts/website1/httpdocs/web/thefile/ on line 72, referer: https://website1/work/?t=3
But i don't why? All seems to be ok for open_basedir:
For the first website:
/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp
For the second website:
/var/www/vhosts/website1/httpdocs/:/var/www/vhosts/website2/httpdocs/:/tmp
Safe_mode is off for the two websites.
The problem now persists when I return to the PHP 5.3.3.
So please help me?
Last edited: