Plesk: Can relocate virtual host location for Linux?
We are planning to migrate a website.
Reviewing the storage size. That would be better to prepare +size of the storage if more websites are going to.
Tried.
ln -s not work.
Unable to open the directory: Symlinks out of webspace are prohibited //httpdocs: Access to realpath denied: /var/www/vhosts/server-2.domain.hk/httpdocs to /media/datastore1/vhosts/server-2.domain.hk/httpdocs.
Only can migrate all vhosts to new place.
# plesk bin transvhosts.pl --help
Utility to transfer vhosts content from HTTPD_VHOSTS_D directory to new place.
Usage:
--dest-dir <path> Destination path. Path to new vhosts directory.
Example: /path/to/new/vhosts.
If directory does not exist it will be created.
--correct-scripts Changes user scripts.
Old vhost path is replaced to new path in content of all files.
Utility to transfer vhosts content from HTTPD_VHOSTS_D directory to new place.
Usage:
--dest-dir <path> Destination path. Path to new vhosts directory.
Example: /path/to/new/vhosts.
If directory does not exist it will be created.
--correct-scripts Changes user scripts.
Old vhost path is replaced to new path in content of all files.
Another way is to +size on Azure Portal.
Changes to the disk size and performance can be made only when the disk is unattached or the managing virtual machine(s) are deallocated.
References
How to change a default document root for all new websites on Plesk?
https://support.plesk.com/hc/en-us/articles/115002249653-How-to-change-a-default-document-root-for-all-new-websites-on-Plesk-
How to change virtual hosts location in Plesk for Linux?
https://support.plesk.com/hc/en-us/articles/213367009--How-to-change-virtual-hosts-location-in-Plesk-for-Linux-
Symlinks out of webspace are prohibited
https://talk.plesk.com/threads/symlinks-out-of-webspace-are-prohibited.358556/
Update