• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to change the /var/www/vhosts/website directory

salvo

New Pleskian
Hi,
I use obsidian Plesk.
I would like to transfer some Wordpress websites from the directory: /var/www/vhosts/website

To the directory: /mnt/sdb/www/vhosts2/website
How can I do?
Can I do this on sites already created?
How to make /mnt/sdb/www/vhosts2/website the defaut directory for the next new sites?
Thanks
 
You can use transvhosts.pl utility only for all vhosts directories:

Code:
# plesk bin transvhosts.pl --help
You should specify destination directory.
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.
 
Hi thanks for your reply,
With this command can I transfer only some websites, leaving the others unaltered? Or does the command redirect all websites?
I have a server with 3 HD. The boot disk, in which there is the /var/www/vhosts/website directory, is almost full. So I would like, if possible, to transfer some websites to other HDs. I am aware that I should have created a lvm partition, but now there is data on all the disks.
 
No, this tool will transfer all of your websites to the new path. You can't have your websites spread on to multiple partitions.
You could in theory work with symbolic links but I highly suggest not to use this option as this would cause a multitude of issues.

So the cleanest solution for you would probably be to set up a new server and transfer all your data to the new server using the Plesk Migrator:
What is Plesk Migrator?
Migrating via the Plesk Interface
 
Back
Top