Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

test directory for shop


biab713

Recommended Posts

Posted

Hi everyone,

I am trying to set up a test directory for my shop on the same server as my live site. However, the pages in my test directory link to my live site pages, which are in the root folder of my site.

 

I have read about changing the 2 configure.php files, and have experimented with that but I can't seem to change the code correctly.

 

Which lines of code need changed?

or ofcourse, is there a another/more effecient way?

 

thanks,

-matt

The credit belongs to the man in the arena, whose face is marred by dust and sweat and blood, who strives valiantly...who knows the great enthusiasms...

Posted

figured out how to link my pages together in the test directory.

 

however does anyone know how to direct a test site to a test database on the same server?

 

i changed the configure.php files to point to my test database, which is there in the same place as my live database, but i keep getting this error:

 

"1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration"

 

This indicates that either no database has been created or the wrong database name DB_DATABASE exists in the configure.php files, but they are there.

 

Is there something else setting the live database as default?

 

thanks,

-matt

The credit belongs to the man in the arena, whose face is marred by dust and sweat and blood, who strives valiantly...who knows the great enthusiasms...

  • 9 months later...
Posted
figured out how to link my pages together in the test directory.

 

however does anyone know how to direct a test site to a test database on the same server?

 

i changed the configure.php files to point to my test database, which is there in the same place as my live database, but i keep getting this error:

 

"1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration"

 

This indicates that either no database has been created or the wrong database name DB_DATABASE exists in the configure.php files, but they are there.

 

Is there something else setting the live database as default?

 

thanks,

-matt

 

What did you do to your configure.php file to get the test directory to work? I'm trying to do the same thing atm.

Archived

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

×
×
  • Create New...