Migration Procedure from Localhost to Development server

Last modified by Shielah Aradillos on 2017/04/19 05:57

1. Compressed the files to be migrated from your local web server (localhost) in *.zip or *.tar.gz format.

2. Export your database with an SQL file in your local PhpMyAdmin.  See how.

3. Log In to your cPanel Account

4. Create and configure the database From cPanel. See how.

5. Import your database you exported from your local PhpMyAdmin. See how.

6. Upload the compressed file to cPanel. See how.

7.  Extract your compressed file to your home directory (/public_html) by clicking the icon extract.png located at the

  right corner of the window or just right click on the compressed file and click extract. Delete the compressed file.

 

rightclick.png   extraact.png

                     NOTE:  Make sure that your website files are placed on the public_html directory and are not enclosed in a subdirectory.

8. Edit the extracted file to update.

  • For Joomla users, select  configuration.php and click on the codeeditor.png icon.

           Update the following lines:

: public $user = 'yourdbusernamehere';
: public $password = 'yourdbpasswordhere';
: public $db = 'yourdbnamehere';
: public $dbprefix = 'yourtableprefix';
: public $log_path = '/home/<yourcpanelusername>/public_html/logs';
: public $tmp_path = '/home/<yourcpanelusername>/public_html/tmp';

  • For WordPress users, select wp-config.php and click on the codeeditor.png icon.
Update the following lines:

: define('DB_NAME', 'yourdbnamehere');
: define('DB_USER', 'yourdbuserhere');
: define('DB_PASSWORD', 'yourdbpasswordhere');
: $table_prefix = 'yourtableprefix';

After updating the lines, make sure to click the icon savechanges.png located at the top right corner of the window.

9. Verify if your website is loading properly. If you have encountered any errors/issues/difficulties in uploading your websites, email [[email protected]].

Tags:
Created by Jay Nacional on 2015/04/23 09:21