Bobcares

Easy way to migrate Joomla site to new server

by | Sep 2, 2019

Website owners often need the migration of their sites due to some business reasons.

The steps to migrate Joomla to new server involve copying of website files and databases.

However, careless migration could lead to improper working of the site. Don’t need that situation right?

We often get requests from our customers to migrate Joomla site to new server as part of our Server Migration Services.

Today let’s discuss how our Support Engineers migrate Joomla site to another server.

 

Steps to migrate Joomla site to a new server

Website migrations are essential to use enhanced features and latest technologies.

Therefore, the initial step in migrating a Joomla site to a new server is to take the backup of the website files and databases. As we all know, backup is essential to prevent the corruption of data.

But how do we take the backup?

Let’s move on and check the migration steps in detail.

 

Backup and Restoration of website files and databases with root access

Having root access on the server make things really easy.

We usually take the backup of files using the following tar command:

tar -czf username_backup.tar.gz  /home/username/public_html

Now, the backup will be available in the user’s home directory.

After compressing the core files of the Joomla website, we transfer it to the new server using the command scp.

Firstly, we move to the directory that contains the backup file and then executes the command,

scp username_backup.tar.gz remote_username@remote_IPaddress:/remote/directory

If the remote server uses a custom SSH port, then we need to specify the port in the command using -P argument.

Joomla is a database-driven CMS. So, the migration of databases is also crucial.

We generally take the backup of the database using the command:

mysqldump database_name > database_name.sql

This command keeps a copy of the database into a .sql file.

At the destination server, we restore the database backup using MySQL command.

mysql database_name < database_name.sql

 

Backup and Restoration of website files and databases without root access

When not having the root access, we always encourage customers to take a backup from the control panel. Let’s now check the steps to take the backup of files using Cpanel.

  1. First, log into cPanel. Then, select Backups from the Files section.
  2. After that, click on, Download a full website backup.
  3. Next, choose the Home directory as the Backup destination.

 

 

Now we have generated the backup. After that, either uses FTP or the File Manager facility in cPanel to restore all the Joomla files to the new server.

For example, in cPanel,

We move to File Manager under the Files section. Choose the backup file and click on upload.

This is how we restore the Joomla files.

For the backup and restoration of databases without having root access, we use cPanel.

  1. Firstly, we log in to the cPanel.
  2. Then, we navigate to Backups>>Download a MySQL database backup
  3. After that, we select the name of the database.
  4. Finally, we choose the destination to save the backup.

To restore the database, we follow the below steps,

  1. First of all, we log into cPanel and move to Backups.
  2. Then, select the Browse option under Restore a MySQL database and choose the .sql.gz file that wants to restore.
  3. Click on Open and then upload. Now the provided destination will contain the restored database.

phpMyAdmin also helps in importing and exporting the Joomla database. In phpMyAdmin, we select the database and choose the export tab. After that, we click on Save and Go.

Similarly, for restoration, we choose the database and click on the Import tab in PHPMyAdmin. We click on the Browse button and select the database file from the computer. And, proceed with the import of the database.

That completes the backup and restore using phpMyAdmin.

 

How we fix the common migration errors

At Bobcares, we see many customers getting errors while migrating Joomla files to a new server. Let’s check on how our Support Engineers fix some top errors.

 

1. Blank page error

Quite often users receive a blank page while loading the Joomla site after migration.

In general, variations in the PHP configuration of the source and destination servers end up in the Joomla blank page error.

Recently, one of our customers approached us with a blank page error on the Joomla site. On checking, our Support Engineers found that the missing PHP module was the problem. To find the real reason behind the blank page, we had to set the error reporting in Joomla configuration to the maximum. Finally reinstalling the PHP module resolved the Joomla blank page error.

Similarly, incorrect rules in .htaccess file cause Joomla blank page errors. Here, we fix the error by correcting the rules and syntax in the .htaccess file.

 

2. Incorrect Directory Structure

Blank page error in Joomla could also occur due to incorrect website directory structures.

Different servers have different directory structures. Joomla sites throw an error for incorrect directory structures. So while we migrate Joomla sites, our Support Engineers make sure that the files and folders have a proper directory structure.

 

3. Corrupted Joomla files

Joomla core files include administrator, cache, etc.

Sometimes, migration could lead to the corruption of Joomla core files. This causes an error while loading the site.

Then, our Support Engineers fix this error by upgrading the Joomla version or by re-restoring the backup.

[Need help in Joomla website migration? Our Migration Engineers are on stand-by.]

 

Conclusion

In short, migrating Joomla site to a new server includes copying website files and databases. Today we discussed how our Support Engineers migrate Joomla files to new server and how they fix the related errors.

Migrate website to a new platform!

Looking for changing infrastructure of your server? Let us help you.

Our migration experts can migrate all your accounts to a new platform without data loss.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF