• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Upload to other vhost Domain with different IPs

dbb

New Pleskian
Hi!

I have two domains:

one.com > ip: 123.123.123.123 > systemuser: user1
sub.two.com > ip: 234.234.234.234 > systemuser: user2

Both domains are on the same server and are managed via the same plesk-panel.

On the sub.two.com domain, i have set up the open_basedir via plesk-panel as follows:
{WEBSPACEROOT}{/}{:}{TMP}{/}{:}/var/www/vhosts/one.com/httpdocs/images/mag/

If I try now over sub.two.com with php a file upload to /var/www/vhosts/one.com/httpdocs/images/mag/ it do not work.

Error:
Warning: file_exists(): open_basedir restriction in effect. File(/var/www/vhosts/one.com/httpdocs/images/mag/) is not within the allowed path(s): (/var/www/vhosts/two.com/:/tmp/:/var/www/vhosts/one.com/httpdocs/images/mag/) in /var/www/vhosts/two.com/sub.two.com/upload.php on line xxx

Can someone please help me?

Greetings!
 
Last edited:
Back
Top