• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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