giuliadima

Member
May 23, 2023
5
0
1
san severo
cPanel Access Level
Root Administrator
Hi guys,
I need help as I am not an expert.
I have 4 vps servers with a lot of virtual hosts. Any virtual host has different path to document root. I would like to change the document root for any virtual hosts that I have on my vps. How can I do it?
also each vps server has a different version of phpmyadmin(from 5.0 to 8). Is it possible to migrate all the servers to cpanel?
Thank you in advance for your help!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,176
2,410
363
cPanel Access Level
Root Administrator
@giuliadima - Welcome to the Forum!

In general, there isn't usually a need to change the document root. Is there an issue you're trying to solve by performing that change?

The PHPMyAdmin version would not affect the migration to a newer system, although I'm wondering if you mean the MySQL version itself, as there is no PHPMyAdmin 8 at this tme.
 

giuliadima

Member
May 23, 2023
5
0
1
san severo
cPanel Access Level
Root Administrator
Hi, I am changing server and I would like to migrate all the files, document root and db as they are in the previous server. I have different document root path so I would like to change the document root path from cPanel and do an easy migration, without chaging anything.
About php, in my server I have php version 5.6 and in the new server I configured cPanel on Ubuntu 20.04 that has mysql 8.0.
It will be a problem during the migration?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,176
2,410
363
cPanel Access Level
Root Administrator
The PHP version isn't related to the MySQL version at all. You would want to ensure the MySQL versions are as close as possible between the two systems.

In general, the document root of the domains *shouldn't* matter, and I honestly wouldn't recommend trying to change it. Details on that process can be found here:


but if you're migrating content, you shouldn't need to make this change.
 

giuliadima

Member
May 23, 2023
5
0
1
san severo
cPanel Access Level
Root Administrator
so how can I migrate a vps server with several virtual hosts with cPanel on a new Ubuntu server 20.04?
every virtual hosts has different cms as joomla and wordpress and others...
Every vhost has his own document root..
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,176
2,410
363
cPanel Access Level
Root Administrator

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,176
2,410
363
cPanel Access Level
Root Administrator
You would not import the Apache configuration to the new server. cPanel handles the Apache configuration based on every process that happens on a machine, such as creating a new account or adding a subdomain, so you won't need to do that.

For the database configuration, it's just a plain text file, so you can compare the options in your downloaded version to the options in /etc/my.cnf and merge the ones you want.