osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

multiple osc sites on webserver

This is a discussion on multiple osc sites on webserver within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hi, I want to create and test different osc sites, some perhaps with different snapshots, on my apache webserver on ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-23-2003, 07:59 AM
New Member
 
Join Date: Feb 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Rodland
Default multiple osc sites on webserver

Hi,

I want to create and test different osc sites, some perhaps with different snapshots, on my apache webserver on my local computer (Jaguar). I already have one working as such:

http://myhomeserver/catalog/
http://myhomeserver/admin/

I have phpMyAdmin installed and have created a database called "catalog".

First of all, if I want to install and test the different sites at once on my server, such as this:

http://myhomeserver/site1/catalog/
http://myhomeserver/site1/admin/

http://myhomeserver/site2/catalog/
http://myhomeserver/site2/admin/

what changes do I need to make in configure.php, application_top.php and other files to do this correctly?

Also, in phpMyAdmin, I have my old database installed and called 'catalog'. Do I simply upload a new database for each site and name them something different or do I erase the existing database and create a new one? Do they both HAVE to be called 'catalog' and if so are there any pages which I need to configure to coincide with the database name?

Also, do I need to make any further changes in passwords etc, to mySQL?

CMR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-23-2003, 08:09 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,314
Thanks: 67
Thanked 321 Times in 304 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

You are on the right track. Every instance of osCommerce needs its own database, such as catalog1, catalog2, etc... (you can name the db whatever you like, just make sure you enter the correct name in the install script)

Each install should be in its own home directory, like you show above, site1, site2, etc.

Run the install script for each separate installation, and you should have no troubles. Make sure the paths that the install script uses actually reflect the true paths of each install.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-23-2003, 09:25 AM
New Member
 
Join Date: Feb 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Rodland
Default

Great, thanks!

What then do I need to configure if I wanted to start by putting an existing osC site from http://myhomeserver/ to http://myhomeserver/site1/ ?

Also would these file be exactly the same files I would need to change again when it comes to uploading the site to the actual web server after getting rid of the site1/ folder?


A database question: If I want to change the name of a database within phpMyAdmin from say catalog to catalog1, after I have used the install script, which files within admin/ or catalog/ do I need to configure manually to coincide with the database name change?

Thanks again,

CMR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-27-2003, 08:09 PM
Lurker
 
Join Date: Feb 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
av8er
Default

If you want to move the site from http://myhomeserver/ to http://myhomeserver/site1/ just create the site one folder and move all the files over there. The you'll have to manually edit /catalog/includes/configure.php to show the new path of your site. You'll have to do the same with /catalog/admin/includes/configure.php.

I couldn't get the install script to work and had to do a manual install, that's how I know this works. I know the exact lines you need to change as well, I just don't have it with me right now. I'll look it up first thing in the morning and post it for you.

Also, I wouldn't change the name of the database, I think you might be asking for trouble if you do that. If anything maybe export the structure & data using PHPMyadmin and create the new database and upload the structure & data to the new one. (I'm new to databases so I could be wrong).

Good luck
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Webserver Upgraded to PHP v4.3.10 and TEP_MAIL won't work... TECH-OPS.net osCommerce 2.2 Modification Help 2 02-14-2005 10:32 AM
can't reach some sites from the admin section albert osCommerce 2.2 Installation Help 1 08-31-2004 12:17 AM
MS2-MAX: How to Remove All links to manufacturer web sites glk osCMax v1.7 Discussion 1 03-10-2004 05:59 PM
Want to run 2 or more sites from one table in Master databas robjms10 osCommerce 2.2 Modification Help 0 04-07-2003 08:06 AM


All times are GMT -8. The time now is 02:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax