Forums / Installing on a Linux/Unix Server / Hosting 2 installs on the one site (one for dev, one for live)

Hosting 2 installs on the one site (one for dev, one for live)

Views: 1,128

Results 1 to 6 of 6
11 Jul 2012, 2:42 AM
#1
howcho avatar

howcho

New Zenner

Join Date:
Jul 2012
Posts:
4
Plugin Contributions:
0

Hosting 2 installs on the one site (one for dev, one for live)

Hi

Thanks for a great project.

I've successfully installed v1.50 on my host with sample data, have purchased the manual (which is excellent) and have been working through that with sample customers, sending emails, new categories and products, etc.

All that is going well, but I think I might like to change my approach: I would like to keep doing that at, say, mysite.com/testdrive or testdrive.mysite.com, but as I learn I'd like to also start developing the real site at mysite.com without the clutter of the sample data.

I want to keep the sample data at the testdrive site because it's a great learning aid (and I still have a lot to learn!).

Can I have 2 installs of Zen-Cart at those 2 locations? If so, should I use a subfolder in my root directory (mysite.com/testdrive) or should I use a subdomain (testdrive.mysite.com)?

Any comments or suggestions most welcome.

Thank you

Howcho

11 Jul 2012, 3:04 AM
#2
howcho avatar

howcho

New Zenner

Join Date:
Jul 2012
Posts:
4
Plugin Contributions:
0

Re: Hosting 2 installs on the one site (one for dev, one for live)

OK, I've basically found the answer from the "Similar Threads" below. (I hadn't used the word "multiple" in my original forum search. Doh!)

My last question still stands, though: should I use a subfolder or a subdomain.

Thanks again.

Howcho

11 Jul 2012, 3:24 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Hosting 2 installs on the one site (one for dev, one for live)

The choice is yours. Zen Cart will work fine either way. Doing it in a subfolder is probably more straightforward for you in terms of configuration.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Jul 2012, 5:40 AM
#4
howcho avatar

howcho

New Zenner

Join Date:
Jul 2012
Posts:
4
Plugin Contributions:
0

Re: Hosting 2 installs on the one site (one for dev, one for live)

Excellent. Thanks Doc.

And thanks again for your project.

Howcho

14 Jul 2012, 4:15 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Hosting 2 installs on the one site (one for dev, one for live)

If you put it into a sub-folder, you can also password-protect that folder with a htaccess username and password. This stops everybody from accessing the installation - including search engines...

20 years a Zencart User

23 Jul 2012, 9:02 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Hosting 2 installs on the one site (one for dev, one for live)

If you have an SSL certificate, that certificate will also apply to a subfolder (https://www.yourdomain.com/subfolder) while I'm pretty sure that it doesn't apply to a subdomain.