Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Migrate to new VestaCP install on new OS

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
CraigWiggins
Posts: 1
Joined: Sun Mar 19, 2017 11:29 pm

Migrate to new VestaCP install on new OS
  • Quote

Post by CraigWiggins » Sun Mar 19, 2017 11:40 pm

For various reasons, I am wanting to rebuild my server (digitalocean droplet).

In the process of the build, I want to move from CentOS to Ubuntu, use nginx and PHP-fpm instead of Apache, and build all the "new" version in parallel with the current production server.

I've talked with the digitalocean people, and my original plan had been to take a snapshot of the "new" server and then restore it to the old, but they do not support this. So Option 2 looks something like this, and I'm asking for a sanity check here...

1. Build a new droplet with the OS I want, and then install VestaCP on that, configured the way I want.
2. Restore accounts from my current production server into the new one.
3. Tweak and twist until everything is working.
4. Reverse the process- rebuilding the droplet on the current production server, setting up Vesta there with the configs I want, then restore Vesta backups from the NEW server onto the rebuilt production server.
5. Win.

Has anyone followed this recipe? If so, how did it go, and were there any "gotchas"? Current droplet is running CentOS 6.8, and Vesta 0.9.8r17 using Apache. This is primarily running both Joomla and WordPress, both of which should run under nginx/PHP-fpm.

I've tried to do my homework, but would like at least one person to check my sanity on this before I start the process. Thanks!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Migrate to new VestaCP install on new OS
  • Quote

Post by skurudo » Mon Mar 20, 2017 9:23 am

Nice plan, somewhere after you add users. you need rebuild configs for domains
Top

7thkey
Posts: 8
Joined: Wed Aug 06, 2014 4:49 pm

Re: Migrate to new VestaCP install on new OS
  • Quote

Post by 7thkey » Thu Apr 06, 2017 11:43 am

@CraigWiggins did you managed to get there?
I am trying to do the same approach, moving from centos to ubuntu, but i am getting errors when i try to import users backup like: Error: invalid backup format.
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Migrate to new VestaCP install on new OS
  • Quote

Post by youradds » Tue Apr 11, 2017 9:15 am

Ditto 7thkey. I'm even going from Ubuntu 16, to Ubuntu 16.. so not sure why I'm getting an issue!
Top

7thkey
Posts: 8
Joined: Wed Aug 06, 2014 4:49 pm

Re: Migrate to new VestaCP install on new OS
  • Quote

Post by 7thkey » Tue Apr 11, 2017 8:44 pm

I finally get this working, You need to put de backup file inside the backups folder, but keep in mind that this folder has a different location on Ubuntu than Centos.
Centos is located: /home/backup
On Ubuntu is located: /backup

You copy the backup file inside those folders and

Code: Select all

v-restore-user username username.backup.file.201X-XX-XX.tar
In my case I had to migrate from Centos to Ubuntu.

I found issues related to .bash_logout and .bashrc. You must copy the content from those files from a clean nonmigrated user and remove .bash_profile.

Another issue i found are related to file/folder permissions. After migrating I could not open my sites inside "default_html" because wrong permissions so I changed to 755 on folders and 644 on files and everything works as desire.

Code: Select all

# Change file permissions on all subfolders
find /home/<user>/web/<domain>/default_html -type f -exec chmod 644 {} \;

# Change folder permissions on all subfolders
find /home/<user>/web/<domain>/default_html -type d -exec chmod 755 {} \;
Another issue related to DKIM on mail, i had to change Ownership inside this
/etc/exim4/domains/<domain_name>

Code: Select all

chown Debian-exim:mail dkim.pem
chown Debian-exim:mail fwd_only
And lastly found another issue related to databases, I don't know why but password gets lost on migration and doesn't work, so i had to set again all my database passwords inside Vesta panel and voilá, everything works again.

If someone finds another issue please, let us know.

Cheers
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password