Migrating from the Development Server to the Production Server

Last modified by Wiki Master on 2015/03/28 14:04

Version 1.1  Updated April 30, 2014  PDF document can be downloaded in this link.

Back up files in the development server

Log in to your development server cPanel account.

1. In your cPanel Home screen, go to Files > Backups.

2. Download a backup of your Home Directory and a backup of your MySQL Database.

migration home

3. Download a backup of your Home Directory and a backup of your MySQL Database

migration backup

4. Log out of your development server cPanel account.


Upload files to the production server

1. Log in to your production server cPanel account.

2. Go to Files > Backups and restore your MySQL Database.

migration restore

A new page, similar to the image below, will pop up.

migration import

After your files have been restored, close this page and go back to your cPanel Home screen.

3. Go to Databases > MySQL Databases.

Check if your MySQL database has been restored. Take note of the database name.

4. Add a new database user. This may or may not be similar to your development server database user. Take note of the username and password you have created.

migration new users

Add the new user to the database you created earlier.

5. Go back to Home and go to Files > Backups. Restore your Home Directory.

migration restore

A new page, similar to the image below, will pop up.

migration restore home

After all files have been restored, close this page and go back to Home.

6. Go to Files > File Manager. Check if all your files have been restored. If files are missing, upload them using the Upload tool.
migration file manager

7. Update your website's configuration files.

For Joomla users, edit your configuration.php file by selecting configuration.php and clicking on the Code Editor icon.

Update the following lines and click on Save Changes:

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, edit your wp-config.php file by selecting wp-config.php and clicking on the Code Editor icon.

Update the following lines and click on Save Changes:
define('DB_NAME', 'yourdbnamehere');
define('DB_USER', 'yourdbuserhere');
define('DB_PASSWORD', 'yourdbpasswordhere');
$table_prefix = 'yourtableprefix';


8. Check for errors and verify if your website is loading properly.

If your domain is hosted at DOST-ASTI or at DOST-ICTO, email [email protected] to have your domain's address record point to the GWHS production server.

If you encounter any issues/difficulties in migration from the GWHS development server to the production server, email [email protected].

Tags:
Created by Wiki Master on 2015/03/28 00:35