Page 1 of 1

Multiple XAMPP installations on one machine

PostPosted: 06. May 2012 08:16
by Chalisque
I have lampp up and working under Ubuntu 12.04. I would like to have a separate lampp installed in a different folder in /opt (e.g. /opt/lampp2) with its own database and files, so that I select between them by choosing which lampp command to run. I untarred the file ok, and ran lampp ok, but mysql still goes to the same database. How to I get separate databases for separate installations (i.e. is /opt/lampp hardwired in some config files that need changing)?

Thanks for any help.

Re: Multiple XAMPP installations on one machine

PostPosted: 06. May 2012 08:25
by Chalisque
Bashing myself over the head for not thinking of it sooner.

Quick solution:

Install each lampp in /opt/lampp.1, /opt/lampp.2 etc. and have /opt/lampp be a symbolic link. Change the symbolic link and launch from /opt/lampp.

Re: Multiple XAMPP installations on one machine

PostPosted: 22. October 2012 23:21
by anakinsge
Hello

I need to do the same thing on my ubuntu. But I am not as experienced a you. In fact I am a newbie at this.
First Question:
I installed successfully my first lampp. How should I untar for the second installation. If I use:
Code: Select all
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

My files will get overwritten
If i use:
Code: Select all
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt/lampp2

I am sure it will install on opt/lampp2/lampp. Which I looks awful.

Another question if I already have first lampp working correctly, can I change it to lampp.1 as suggested with out any other problems?
Also what is that symbolic link you talk about?

Thanks

Re: Multiple XAMPP installations on one machine

PostPosted: 16. April 2014 11:33
by little_holly
Very late reply, but maybe others who are looking for the sam thing are ending up at this forum, too.

I was looking for the same problem and the information on this website seems to be
helpful.
http://meows.us/my-life/running-multiple-versions-of-xampp-on-ubuntu-linux/