Knowledgebase

How to move Drupal to a new host

In this article we'll list the basic steps that you have to take to transfer your Drupal. These steps are the same regardless of whether you move your Drupal to a new hosting account with the same hosting provider or with a different provider.


Free Website Transfer from HostKnox - get our Drupal hosting plan and have our Drupal specialists take care of transferring your website for you at no additional cost.

To migrate Drupal you have to do the following:

  • You have to download the Drupal files and folders from the old hosting account to your local computer. Then you should upload them to the new hosting account. You can do this with an FTP client (e.g. FileZilla).

  • You have to export the database used by the application. Then you have to import it into a database on the new account. You can do this with phpMyAdmin. Another way to do it is via SSH.

  • You have to edit the settings.php file of the transferred Drupal and change the database information in it.

By default, the settings.php file has its permissions set to 444 (r--r--r--) and to be able to edit it you have to change them to 644 (rw-r--r--). You can do this from the Files section of the Pixie control panel or with an FTP client. In the file find the lines:

'database' => 'database_name',
'username' => 'database-user',
'password' => 'user-password',
'host' => 'localhost',

Replace database_name with the name of the database into which you imported the exported database dump file. Replace database-user with the username of the user that's associated with the database and user-password with the password of that user. Database users can be added (and removed) to databases from the Databases section of the Pixie control panel. The host should be set to localhost.

For some more details you can also read the tutorial on how to transfer your Drupal site.

Was this answer helpful?

 Print this Article

Also Read