Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move from home computer to server


renix

Recommended Posts

Worked on an oscommerce site on my home pc - running Apache and PHP. Had my host put my database on server, then copied my catalog to the server.

 

After getting through all the global variables issues (installed mod), I'm unable to connect to the db on the new server, even though I've set things up as per host's directions - changed usernames and passwords and server paths in configure.php files (both of them).

 

Host says the install directory is missing. It is, because I deleted it after installing on my home pc.

 

How do I proceed? Do I need to run the oscommerce install on the server, then replace the catalog files with my new ones?

 

Are there other files that I might need to change? Any assistance would be greatly appreciated.

 

Thanks, Mike

Link to comment
Share on other sites

Host says the install directory is missing. It is, because I deleted it after installing on my home pc.

 

That's because your configure.php file is not set. In application_top.php you'll find:

 

// include server parameters
 require('includes/configure.php');

 if (strlen(DB_SERVER) < 1) {
   if (is_dir('install')) {
     header('Location: install/index.php');
   }
 }

 

If the DB_SERVER server line is blank ('') it looks for the install directory.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...