Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I have multiple sites installed on my PC using XAMPP


SomersetGuy

Recommended Posts

Hi

 

I sucessfully installed a OSCommerce on my PC using XAMPP. I would like to ask the experts a question. Can I set up multiple websites on my PC? Here's what I'd like to do. I am helping my brother with his site. I would like to download his site to my PC and make some formatting changes to it and be able to reference the clean install I have here, the existing site and the new site. If this is possible how do I go about it?

 

Thanks in advance

Link to comment
Share on other sites

If this is possible how do I go about it?

Just put the shops in different folders. Of course you can only have one in the root directory but nothing stops you from having one shop in /catalog/, one in /shop/, the other in /cat1/ etcetera. You just need to adjust the configure.php's in the shop when you download them.

Link to comment
Share on other sites

Add this to

 

C:\xampp\apache\conf\extra\httpd-vhosts.conf

 

 

## This is the default never change this

<VirtualHost 127.0.0.1:80>

ServerName localhost

DocumentRoot "C:/xampp/htdocs"

<Directory "C:/xampp/htdocs">

Options Indexes FollowSymLinks Includes ExecCGI

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

 

## 1st name based vhost, wont be live but for store testing

 

NameVirtualHost *:80

 

<VirtualHost 127.0.0.1:80>

ServerName localhost

DocumentRoot "C:/xampp/htdocs"

<Directory "C:/xampp/htdocs/teststore">

Options Indexes FollowSymLinks Includes ExecCGI

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

## 2nd name based vhost, wont be live but for store testing

 

NameVirtualHost *:80

 

<VirtualHost 127.0.0.1:80>

ServerName localhost

DocumentRoot "C:/xampp/htdocs"

<Directory "C:/xampp/htdocs/oscmodtest">

Options Indexes FollowSymLinks Includes ExecCGI

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

change teststore and oscmodtest to what ever names you want.

 

the xampp fourm is a great place to learn also.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...