Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving to a diferent webserver


jpn

Recommended Posts

I am a web developer who has been asked on behalf of a client to move their site to a different Hosting Company.

 

What I need to know is - Can I just copy the existing php files from the existing server to the new server and expect OSCommerce to work as before OR do I need to install the oscommerce program from scratch on the new server.

 

I realise that I would have to alter some configuration files ie database name, password etc.

 

My apologies if this is a dumb question but I have had no experience with OScommerce before.

 

Thanks,

 

John

Link to comment
Share on other sites

Hi

 

1. you need make backup mysql database. Use admin > tools > backup

2. Copy all files to new destination

3. If you removed installation files (i think you did it is recomended), add installation files to main catalog

4. Install osc

5. Go to admin > tools > backup restore your backup

 

Done

 

(sorry 4 my english)

Link to comment
Share on other sites

Hi

 

1. you need make backup mysql database. Use admin > tools > backup

2. Copy all files to new destination

3. If you removed installation files (i think you did it is recomended), add installation files to main catalog

4. Install osc

5. Go to admin > tools > backup restore your backup

 

Done

 

(sorry 4 my english)

 

Wouldn't any contribution files/mods be overwritten when you perform step 4?

Link to comment
Share on other sites

I don't know if contributions and mods would be modified in the installation or not, but my guess is that the installation only affects the database and the configure.php files. Still, it's not the way I'd recommend doing it.

 

All you really need to have is a complete copy of all the files in your website, plus the database. Create the database on your new host, and upload the files into the root or whatever subfolder you're installing osc in. Then go to includes/configure.php and admin/includes/configure.php and change the necessary settings.

 

If the only thing you're changing is the webhost, I'm guessing that all you'd need to change in includes/configure.php is

  define('DIR_FS_CATALOG', '/home/public_html/');

and the database connection information to the information on your new database. Assuming you're keeping the same domain name and osc is installed in the same place, of course.

 

Admin/includes/configure.php you'd need to change DIR_FS_DOCUMENT_ROOT, DIR_FS_CATALOG, DIR_FS_ADMIN, and the database connection.

Always BACK UP your files and your database before making any changes. Before asking questions, check out the Knowledge Base. Check out the contributions to see if your problem's solved there. Search the forums.

 

Useful threads: Store Speed Optimization How to make a horrible shop Basics for design change How to search the forums

 

Useful contributions: Easypopulate Fast, Easy Checkout Header Tag Controller

Link to comment
Share on other sites

Wouldn't any contribution files/mods be overwritten when you perform step 4?

 

Yes they would.

 

I follow this procedure:

To move site do the following

 

1. backup your database using the backup tool in your osC admin

2. ftp all your files to your local computer

3. create new database and user (making sure you assign user to database)

4. populate your new database with sql file from last backup.

5. edit your two configure.php files to reflect the new location and new database.

6. upload all your files to the new server.

7. If you have Ulitmate SEO installed edit the .htaccess file

 

Step four should not be done through osc admin. Better to do through myphpadmin or some other utilitly as the osc restore can cause problems.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Link to comment
Share on other sites

Yes they would.

 

I follow this procedure:

To move site do the following

 

1. backup your database using the backup tool in your osC admin

2. ftp all your files to your local computer

3. create new database and user (making sure you assign user to database)

4. populate your new database with sql file from last backup.

5. edit your two configure.php files to reflect the new location and new database.

6. upload all your files to the new server.

7. If you have Ulitmate SEO installed edit the .htaccess file

 

Step four should not be done through osc admin. Better to do through myphpadmin or some other utilitly as the osc restore can cause problems.

 

 

 

Is step 3 part of the OSC installation procedure? If not do I actually need to reinstall OSC if I have the php files already on the existing server.

 

 

Thanks ddp

 

 

jpn

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...