• 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.

Move vhosts and keep links

RossProactive

New Pleskian
Hi all - I have a Plesk 10.3 server running on CentOS 6.

I am running out of space on the current drive, and have installed a new disk to hold my vhosts folder.

I need to run the transvhosts.pl script to move the vhosts folder; so:

1 Can someone please advise what the command should be?
2 Does it matter what I mount the new drive as?
3 And most importantly, will this process mean the paths to /var/www/vhosts/mysite are still valid? I have lots of scripts which refer to files by the full path, so if the path changes, they will all require a rewrite.

Many thanks experts

Ross
 
Thinking about ( I am not the world's greatest Linux brain) do I actually need to run the Plesk command at all? Can't I just mount the new drive as /var/www/vhosts somehow, and move files over?
 
Have you tried to read carefully output of this command with --help option?
 
Thanks Sergey, I think this is more of a Linux issue rather than a Plesk issue, but would this be the process:

Format the new partition
Stop apache
Rename var/www/vhosts to vhosts_old
Create var/www/vhosts and mount /dev/sd1a to this point
Rsync data from var/www/vhosts_old to var/www/vhosts
Start apache

Am I on the right track?

Thanks for your help.
 
Yes, I think that's right approach. If there are other people accessing Plesk, I would also stop Plesk to prevent any changes while moving data.

/etc/init.d/psa stop
 
Back
Top