Forums / General Questions / Working locally with two versions (or 2 instances) of XAMPP

Working locally with two versions (or 2 instances) of XAMPP

Locked

Started by tryphon on 17 May 2010, 1:10 PM · Views: 4,834

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
17 May 2010, 1:10 PM
#1
tryphon avatar

tryphon

New Zenner

Join Date:
Mar 2008
Location:
Brussels, Belgium
Posts:
69
Plugin Contributions:
0

Working locally with two versions (or 2 instances) of XAMPP

I have used XAMPP to develop my website on my PC, then upload what has been developed locally on the online Website. This works fine, specifically to test modifications brought in the ZC code.

I would now like to develop a 2nd website. I would like to use the same methodology.

It is possible to install a 2nd version (or a 2nd instance) of XAMPP on the same PC (in the same partition) without "destroying" what has been installed when the 1st XAMPP instance was installed?

Thanks.

17 May 2010, 5:21 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,879
Plugin Contributions:
7

Re: Working locally with two versions (or 2 instances) of XAMPP

If you want to work with several websites, irrespective of whether they are carts or not, you don't have to install several versions of Xampp.

You can put your websites where you like on your pc, I have them all in My Documents for ease of backups.

Xampp seems to be better placed in the root C:.

Then in the apache hpptd.conf file you look for this section

<IfModule alias_module>

and after the comments you put an alias like this:

Alias /mysite1 "D:/My Documents/Business/websites/mysite1/httpdocs/"
<Directory "D:/My Documents/Business/websites/mysite1/httpdocs/">
Order allow,deny
Allow from all
</Directory>

now when you type http://localhost/mysite1 in your browser it should look for index.html in the directory specified and you don't have to have anything in the default C:\xampp173\htdocs away from all your other files.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

17 May 2010, 5:33 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Working locally with two versions (or 2 instances) of XAMPP

Or you can just create multiple folders for each site in the xampp htdocs folder and reference them as localhost/foldername1 and localhost/foldername2.

Rather than backing up code folders, I prefer to use an SVN repository, which automatically keeps a history of each of my changes, allows me to access an up-to-date copy my projects on any of the machines I use, anywhere that I have an internet connection and to work collaboratively with other developers. :wink:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

17 May 2010, 7:02 PM
#4
tryphon avatar

tryphon

New Zenner

Join Date:
Mar 2008
Location:
Brussels, Belgium
Posts:
69
Plugin Contributions:
0

Re: Working locally with two versions (or 2 instances) of XAMPP

Thanks to both of you for this useful information.