• 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

Plesk WebServer Question

W

wfernley007

Guest
Hey everyone,

I'm not sure if anyone will be able to help me but I have a question regarding my Plesk Web Server.

Right now I have two websites located in the following Plesk directories:
/var/www/vhosts/site1.com/httpdocs/
/var/www/vhosts/site2.com/httpdocs/

Plesk denies site1.com from viewing files in site2.com's directories. I need site1.com to be able to access files from a directory in site2.com's directories.

This would be done in an include. Basically site1.com is trying to include a file in PHP like this:

require("/var/www/vhosts/site1.com/httpdocs/file.php");


Would anyone here know how to allow site1.com to view site2.com's files? I think it has something to do with an open_base restriction. I tried searching here and on Google but can't find anything.

Thanks in advance for your help!

Wes
 
it is related to the user, the user of site1 if probably different from site2. you can change the ownership of the directory and files you try to access, but you might expect the side effect of the user of site2 being unable to access its own files!

I guess there is a better way by using the groups, but you must be sure not to mess up things here, an expert advise required here.

Or just simply declared full access to site2, exposing it to the world.

Regards,

Flupke
 
Back
Top