We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Migrate to new VestaCP install on new OS
-
- Posts: 1
- Joined: Sun Mar 19, 2017 11:29 pm
Migrate to new VestaCP install on new OS
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!
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!
Re: Migrate to new VestaCP install on new OS
Nice plan, somewhere after you add users. you need rebuild configs for domains
Re: Migrate to new VestaCP install on new OS
@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.
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.
Re: Migrate to new VestaCP install on new OS
Ditto 7thkey. I'm even going from Ubuntu 16, to Ubuntu 16.. so not sure why I'm getting an issue!
Re: Migrate to new VestaCP install on new OS
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
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.
Another issue related to DKIM on mail, i had to change Ownership inside this
/etc/exim4/domains/<domain_name>
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
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
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 {} \;
/etc/exim4/domains/<domain_name>
Code: Select all
chown Debian-exim:mail dkim.pem
chown Debian-exim:mail fwd_only
If someone finds another issue please, let us know.
Cheers