How to Transfer a Website on 1C-Bitrix to Another Hosting Provider ⋆ ALexHost SRL

Test your skills on our all Hosting services and get 15% off!

Use code at checkout:

Skills
31.10.2024

How to Transfer a Website on 1C-Bitrix to Another Hosting Provider

Transferring a website built on 1C-Bitrix to a new hosting provider involves moving files, databases, and reconfiguring server settings. Here’s a step-by-step guide to transferring your 1C-Bitrix website smoothly.

1. Preparation Steps

Before starting the transfer, perform these preparations:

  • Back Up Your Website: Create a complete backup of your website files and database. This ensures you can restore the site if needed.
  • Choose a Compatible Hosting Provider: Ensure the new hosting provider meets the technical requirements for 1C-Bitrix, including PHP, MySQL (or another supported database), and server configuration compatibility.

2. Export the Database

The database contains essential data for your website, such as content, user information, and settings.

Step 1: Log into phpMyAdmin

Log into phpMyAdmin on your current hosting provider.

Step 2: Select Your Database

In phpMyAdmin, select the database associated with your 1C-Bitrix site from the left panel.

Step 3: Export the Database

  1. Click Export at the top.
  2. Select the Quick export method and SQL format.
  3. Click Go to download the database as an .sql file.

3. Download Website Files

Use an FTP client, like FileZilla, to download your website files from the current server.

  1. Connect to Your Hosting via FTP: Use your FTP credentials to connect.
  2. Download All Files: Locate the 1C-Bitrix website files (usually in the public_html or www directory) and download them to your local computer.

4. Upload Files to the New Hosting Provider

After downloading the website files, connect to your new hosting provider and upload them.

  1. Connect via FTP to the New Hosting Provider: Enter the new hosting’s FTP credentials in your FTP client.
  2. Upload the Files: Transfer all the files from your local computer to the new hosting directory (e.g., public_html or www).

5. Import the Database to the New Hosting

Next, import the .sql database file to the new hosting provider.

Step 1: Log into phpMyAdmin on the New Hosting

Access phpMyAdmin through your new hosting provider’s control panel.

Step 2: Create a New Database

  1. Go to Databases in phpMyAdmin.
  2. Create a new database, set up a user, and assign it a password.

Step 3: Import the Database

  1. Select the new database in phpMyAdmin.
  2. Click Import and choose the .sql file you exported earlier.
  3. Click Go to import the database.

6. Update Database Configuration in 1C-Bitrix

After transferring files and importing the database, update the configuration file to point to the new database.

  1. Locate the dbconn.php file in the 1C-Bitrix directory on the new hosting server. This file contains database connection settings.
  2. Open dbconn.php with a text editor and update the following details:
    $DBHost = “localhost”; // Database host (usually “localhost”) $DBName = “new_database_name”; // The name of the new database $DBLogin = “new_database_user”; // The new database username $DBPassword = “new_database_password”; // The new database password
  3. Save and close the file.

7. Update Domain DNS Settings

To complete the transfer, update your domain’s DNS settings to point to the new hosting provider’s IP address.

  1. Log into your domain registrar’s control panel.
  2. Locate the DNS settings and update the A record to the new hosting server’s IP address.
  3. If your hosting provider provides custom nameservers, update the Nameservers to those specified by the new host.

8. Testing and Troubleshooting

Allow up to 24-48 hours for DNS changes to propagate fully. After propagation:

  • Test Website Functionality: Visit your website and verify that all pages, forms, and features are working as expected.
  • Check for Broken Links or Errors: Ensure that file paths and database connections are configured correctly to avoid errors.
  • Monitor for Issues: Monitor your website for any issues and contact the hosting provider’s support if needed.

9. Deactivate the Old Hosting (Optional)

Once you’ve confirmed that your website is working properly on the new hosting provider, you may cancel your old hosting plan if it’s no longer needed.

Conclusion

Transferring a 1C-Bitrix website to a new hosting provider involves careful backup, database migration, and configuration updates. By following these steps, you can ensure a smooth transition and minimize downtime. Remember to test your website thoroughly on the new server to confirm that everything is functioning as expected.

Test your skills on our all Hosting services and get 15% off!

Use code at checkout:

Skills