Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

COPY SITE / create development environment


SimonB76

Recommended Posts

Posted

Hi,

 

I have inherited an OsCommerece site (from someone else) and want to setup a test environment for an, that is create an exact copy. I understand I need to

1) copy all files

2) copy db, into a new db

3) modify config files

 

So these are my config files ;-) Exactly which one need to be changed and how?

 

\configure.php

\admin\config.php

\admin\config.php.bak

\admin\admin\config.php

\admin\admin\configuration.php

\admin\admin\includes\configuration_update_check.php

\admin\admin\includes\configuration_update_form.php

\includes\configure.php

\includes\configure1.php

\manage\configuration.php

\manage\configure.php

\manage\htmlarea\popups\config.inc.php

\manage\htmlarea\popups\file\config.inc.php

\manage\images\categories\configuration.gif

\manage\includes\configure.php

\manage\includes\boxes\configuration.php

\manage\includes\languages\english\configuration.php

\manage\includes\languages\espanol\configuration.php

\manage\includes\languages\german\configuration.php

\manage\includes\languages\norwegian\configuration.php

 

 

First i was thinking of moving it to a subdirectory on the same server, so I changed:

 

in: \includes\configure.php

define('DIR_WS_HTTP_CATALOG', '/testcopy/');

define('DIR_WS_HTTPS_CATALOG', '/testcopy/');

 

which changed some links correctly but to all. How to update all links?

 

 

Also what effect does this have:

define('HTTP_COOKIE_PATH', '/testcopy/');

define('HTTPS_COOKIE_PATH', '/testcopy/');

 

I mean is the live site and the test site going to share cookies?

Ie: the live site is at / (root), whilte the test site is at (/testcopy)

 

 

But perhaps it's best to move it to a subdomain ;-)

 

 

Any help, much appreciated.

Simon

Posted

Its' best to set up your own computer as a local web server (Intranet) and then you can test it offline on your own server.

 

There's an all-in-one package called XAMPP at http://www.apachefriends.org/en which contains all you need and is a 1-click install once downloaded.

 

Vger

Archived

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

×
×
  • Create New...