hosting applications
Home : Hosting: My Account


How to transfer os-commerce application to a different server (dedicated server)?

In this example we are moving a hosted os-commerce from a virtual server (shared) to a dedicated server.  We have tested these procedures with Plesk 9.x.

Step 1: you need to make decisions on weather you want to transfer the entire domain and all DNS records (MX for mail, etc.) associated with it or just the site.

·         If you want to transfer the entire domain then you need to update the DNS with the new name server (for example ns1.newnameserver.com, ns2.newnameserver.com)

·         If you only need to switch the website contents to new dedicated server then just update the “A” record in the DNS to the new IP address.  Your email will remain on the old server)

·         This change should take at most 48 hours to propagate thru all web servers

 

Step 2: you need to create the domain on the new server.  You can do that after Step 1 or using the new dedicated server IP address you can FTP the contents from the old server to the new server.  For example from Plesk:

·         Click on Domains >> new Domain and create your new domain

·         When you do that you will need to assign one of your dedicated server IP addresses to the new domain.

·         Then you can use that IP address to ftp the files to the new hosting space.

 

Step 3: In this example we assume that you need to create the database on the new server (you can also keep the database on the old server) :

·         Login to Plesk Control Panel for you dedicated server: https://www.your-dedicated-server-domain.com:8443

·         Click on Domains and select your domain from the list (if you have more than one domain hosted on this dedicated server)

·         Under Applications & Services click on the databases icon

·         In the databases view click on Add New Database

·         In the Add New Database views enter the database name / Type (MySQL for example).  From the database server list pick Local MySQL Server from the drop down list.  This is the default for MySQL configuration.  Then click Ok.

·         Click on Add New Database User and set a new user name and password

 

Step 4: Move the database from old server to the new dedicated server

·         On the old Server.  Go to Edit your MySQL database using phpMyAdmin and export the database into a .sql file on your pc.

·         On the new server open phpMyAdmin for the database you created in Step 3.  Click the database and then click Import and import the database into the new dedicated server.

 

Step 5: Update the includes/configur.php file to point to the new server and database.  Your includes/configure.php should look like this (you may need to adjust the server path on line 20):

1.      <?php

2.      define('HTTP_SERVER', 'http://www.yourdomain.com');

3.      define('HTTPS_SERVER', 'https://www.yourdomain.com');

4.      define('ENABLE_SSL', 'true');

5.      define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

6.      define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com');

7.      define('HTTP_COOKIE_PATH', '/');

8.      define('HTTPS_COOKIE_PATH', '/');

9.      define('DIR_WS_HTTP_CATALOG', '/');

10.  define('DIR_WS_HTTPS_CATALOG', '/');

11.  define('DIR_WS_IMAGES', 'images/');

12.  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

13.  define('DIR_WS_INCLUDES', 'includes/');

14.  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

15.  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

16.  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

17.  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

18.  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

19.  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

20.  define('DIR_FS_CATALOG', '/home/content/a/l/o/yourdomain/html/');

21.  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

22.  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

23.  define('DB_SERVER', 'localhost');

24.  define('DB_SERVER_USERNAME', 'your-db-username');

25.  define('DB_SERVER_PASSWORD', 'your-db-password');

26.  define('DB_DATABASE', 'your-db-name');

27.  define('USE_PCONNECT', 'false');

28.  define('STORE_SESSIONS', 'mysql');

29.  ?>

 

Step 6: Update the admin/includes/configur.php file to point to the new server and database.  Your admin/includes/configure.php should look like this (you may need to adjust the server path on lines 8 and 10):

1.      <?php

2.      define('HTTP_SERVER', 'http://www.yourdomain.com');

3.      define('HTTP_CATALOG_SERVER', 'http://www.yourdomain.com');

4.      define('HTTPS_CATALOG_SERVER', 'https://www.yourdomain.com');

5.      define('ENABLE_SSL_CATALOG', 'true');

6.      define('DIR_FS_DOCUMENT_ROOT', '/home/content/a/l/o/yourdomain/html/');

7.      define('DIR_WS_ADMIN', '/admin/');

8.      define('DIR_FS_ADMIN', '/your-dedicated-server-path/yourdomain/html/admin/');

9.      define('DIR_WS_CATALOG', '/');

10.  define('DIR_FS_CATALOG', '/your-dedicated-server-path/yourdomain /html/');

11.  define('DIR_WS_IMAGES', 'images/');

12.  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

13.  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

14.  define('DIR_WS_INCLUDES', 'includes/');

15.  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

16.  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

17.  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

18.  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

19.  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

20.  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

21.  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

22.  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

23.  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

24.  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

25.  define('DB_SERVER', 'localserver');

26.  define('DB_SERVER_USERNAME', 'your-db-user-name');

27.  define('DB_SERVER_PASSWORD', 'your-db-password');

28.  define('DB_DATABASE', 'your-db-name');

29.  define('USE_PCONNECT', 'false');

30.  define('STORE_SESSIONS', 'mysql');

31.  ?>

 

Step 7: FTP the files to the new server using either your new IP address or ftp.yourdomain.com if you did the DNS switch already.

Your ecommerce site should be up and running on the new dedicated server.

 

Hosting plan

 

Enjoy FREE access to our Exclusive Value Applications!
Enhance your site with today's hottest hosting applications and utilities. They're all in one easy-to-access, quick-install location. Go to Value Applications

all plan
  • 24x7 FTP access
  • World-Class Data Centers
  • Daily Backups
  • Best-of-Breed Routers, Firewalls and Servers
  • Web site statistics
  • FREE Email Addresses
  • Google® Webmaster Tools
  • Ad Credits from MySpace® and Google®
  • Key Technical Features
  • Value Applications
all plan
Telephone Support & Sales
FASTEST! Expected wait time: 1 minutes
  • 24x7 Technical Support
    U.S. (480) 624-2500
  • 24x7 Billing Support
    (480) 624-2515
 
Email Support
Expected Response Time: 3 hours
Access Email Support System
all plan
Dedicated Servers
Enjoy  our ultimate server package – customize and configure your own Dedicated Server. Simply choose one of our popular plans or select your own Linux or Windows server and plan options. No long waits – your server is provisioned within hours. HOSTITWISE.COM makes it easy!
Learn more about our Dedicated Server plans 


Virtual Dedicated Servers

Get  the features of our Dedicated Servers at a lower price. With Virtual Dedicated hosting from HOSTITWISE.COM, your server is shared while the accounts are isolated, so you still have full control over server space. To get started, simply choose one of our popular plans or build your own.

Learn more about our Virtual Dedicated Server plans

 

 

 

 

 

 

 

Copyright © 2005-2010 by HOSTITWISE.COM  Read our Copyright Statement. All rights reserved.

Laser Cutting | RushRash Inc |