osCmax v2.5 User Manual
Results 1 to 4 of 4

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 ...

      
  1. #1
    New Member
    Join Date
    Feb 2003
    Posts
    20
    Rep Power
    0


    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

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Feb 2003
    Posts
    20
    Rep Power
    0


    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

  4. #4
    Lurker
    Join Date
    Feb 2003
    Posts
    4
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •