• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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