- Server operating system version
- AlmaLinux 9.4
- Plesk version and microupdate number
- 18.0.65
Hi all,
We have a problem after migrate two websites : a website with the management platform, a website with the data.
We have resumed the previous configuration but have a problem with PHP and open_basedir restriction.
The 1st website directory (management) is: /var/www/vhosts/mydomain.com/httpdocs/
The 2nd website directory (data) is: /var/www/vhosts/mydomain2.com/httpdocs/
We have defined PHP open_basedir in the plesk PHP config from the domain 1:
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/var/www/vhosts/mydomain2.com/httpdocs{:}/var/www/vhosts/mydomain2.com/httpdocs/{:}/var/www/vhosts/mydomain2.com/httpdocs//
But nothing works...
When we try to display a picture on the website 1, we have non picture and this message in the logs:
mod_fcgid: stderr: PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/vhosts/mydomain2.com/httpdocs//) is not within the allowed path(s): (/var/www/vhosts/mydomain1.com/:/tmp/:/var/www/vhosts/mydomain2.com/httpdocs:/var/www/vhosts/mydomain2.com/httpdocs/:/var/www/vhosts/mydomain2.com/httpdocs//)...
I must be missing something very simple but I don't see... help!
Erwan
We have a problem after migrate two websites : a website with the management platform, a website with the data.
We have resumed the previous configuration but have a problem with PHP and open_basedir restriction.
The 1st website directory (management) is: /var/www/vhosts/mydomain.com/httpdocs/
The 2nd website directory (data) is: /var/www/vhosts/mydomain2.com/httpdocs/
We have defined PHP open_basedir in the plesk PHP config from the domain 1:
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/var/www/vhosts/mydomain2.com/httpdocs{:}/var/www/vhosts/mydomain2.com/httpdocs/{:}/var/www/vhosts/mydomain2.com/httpdocs//
But nothing works...
When we try to display a picture on the website 1, we have non picture and this message in the logs:
mod_fcgid: stderr: PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/vhosts/mydomain2.com/httpdocs//) is not within the allowed path(s): (/var/www/vhosts/mydomain1.com/:/tmp/:/var/www/vhosts/mydomain2.com/httpdocs:/var/www/vhosts/mydomain2.com/httpdocs/:/var/www/vhosts/mydomain2.com/httpdocs//)...
I must be missing something very simple but I don't see... help!
Erwan