Our Community

DomainGurus Forums » Plesk Parallels Control Panel

  1. How to restore/copy sites after OS reinstall Linux + Plesk

    Once you have your new OS running, just log into Plesk, and create all the domains you wish to restore. After this is done, SSH to your server. Once in the command prompt you should have a tree structure under /home/httpd/vhost/domains If so then all you need to do is sync or update these directories with the info you have on your old drive, which most of the time is mounted under /mnt/old-drive or /mnt/orig-drive. To do this just do as following: rsync -auv /mnt/orig-drive/home/httpd/vhost/domain /home/httpd/vhost/domain This will update the folder in your current hard drive with info of the old hard drive (updating the files inside of it). Sometimes after this is done the owner and group that these files belong to is root, so the site wont immediately work, but you can change the owner and group, just go back to Plesk and go to the file manager under the desired domain. Once there you'll see an user and a group to your right just next to the file name and permissions, this is the user and group we will use on the domain directly at your server. chown user:group -R /home/httpd/vhost/domain This will change the owner and group for all the folders under the desired domain, including the domain folder itself, remember its important you gather the user and group from Plesk rather making it up. Now you can test http://domain/ and it should work just fine.

    Posted 9 months ago #

Reply

You must log in to post.