• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Changing Documentroot for subscription

Hi Spikerok,

as you don't provide enough informations about your operating system and your Plesk version ( incl. MU ) and left out as well informations, about your "clone domains" ( are these subdomains, alias domains ... ), I can only suggest to read the Plesk documentation for it:

For Plesk 12.5:
 
I run Plesk 12.0.18 Update #70 on CentOS Linux 7.1.1503 (Core).

I have created two subscriptions:
- Subscription 1 called main.com and document root is /var/www/vhosts/main.com/httpdocs
- Subscription 2 called clone.com and document root is /var/www/vhosts/clone.com/httpdocs

I want Subscription 2 have document root at /var/www/vhosts/main.com/httpdocs
 
I doubt that this can be done with Plesk, because each subscription can only be modified on the /[domain].[tld] level, but not on a higher level.

However you could do a workaround: On the linux console (login with SSH, use super user mode), remove the /httpdocs directory. Instead, create a symbolic link within the second subscription to the httpdocs of the first subscription, e.g. "ln -s /var/www/vhosts/main.com/httpdocs /var/www/vhosts/clone.com/httpdocs". The webserver will then serve all files from the other subscription.

There is a big problem with what you want to achieve, though: The access properties of the file system. As different subscriptions are owned by different users, you may run into severe issues in the subscription linked to the other, because that user will not be allowed to write to files owned by the other subscription's user. So basically this solution is bad in general. You should better use the standard way of adding domains within the same subscription. There you can easily set the "Hosting options" of your second domain to the same directory as you have set them for the first domain (normally "httpdocs").
 
Back
Top