KnowledgebaseAccount & BillingManaging Your Account and ServicesApplications
Back to Applications

How To Migrate An OSCommerce Installation

Here are instructions on how to migrate an osCommerce installation to our cPanel servers.

Getting Ready to migrate:

You will need the following:

1. The document root of the domain you want osCommerce to be installed under with us (this assumes you want the osCommerce install to be the first thing you want to come up when someone visits the site, if not you can move it to a sub-directory)
2. An archive with your osCommerce files
3. A dump file of your osCommerce database

Migrating your install:

The first thing you need to do is move your file archive into the document root (or sub-directory if you want it set up there) of the domain you want to install. This can be done either via FTP or through cPanel's file manager using its upload utility.

Once the archive has been uploaded, you'll need to decompress it, the easiest method to use for this is the extract utility in cPanel's file manager.

If the files are extracted to their directory you'll need to move them up a level. Meaning if they extract to doc_root/sub/ and you need them in doc_root/ you'll need to select all the files and move them up one level so they all reside in doc_root/.

Once that's been done, you'll need to import the database of your install into a database on your account. For that, you'll need to make sure you have a database already created through cPanel, and you'll also need a user attached to the database and the user's password (the last two items come into play later). The import can be done through phpMyAdmin or the command line. If you need help with this step just upload the dump file to your account and let us know where the dump file is as well as what the name of the database is that you created.

After the database has been uploaded you'll need to change some settings in the configure.php file. The settings you'll need to change and to what are as follows:


where CPANELUSER is your cPanel username and DOCUMENTROOT is the path to your osCommerce install.

define('DB_SERVER_USERNAME', 'user_name');

Where user_name is the MySQL user you created and attached to your database earlier.

define('DB_SERVER_PASSWORD', 'passwordgoeshere');

Where passwordgoeshere is the MySQL user's password.

define('DB_DATABASE', 'database_name');

Where database_name is your MySQL database.

From here things should be working.

Related Articles

How To Activate SSL In OSCommerce
How To Reset My OSCommerce Password
How To Install OSCommerce
What Is OSCommerce
How To Resolve Oscommerce Showing Categories From Other Sites

Can’t Find what you need?

No worries, Our experts are here to help.