Two Instances of XAMPP

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Two Instances of XAMPP

Postby anakinsge » 24. October 2012 16:58

Hello everybody:

I need some help. I need to install two instances of XAMPP. The production and the developer one. (There should be on different machines, but there is a budget issue). Any way I installed as I have done before, the production instance with out hassle. It is installed under /opt/lampp/

The second one I untared under /opt/dev-xampp/lampp/. I have not even tried to start the "dev-xampp" service yet because I figure out I should change the installation directory value and the apache/mysql ports on all the configs, ini, etc. Running the command grep I saw that there is just to many files to change then manually.

I could change them using grep and xargs but I am only a newbie-intermediate ubuntu user, so i am not sure if i can do that using something like this:
Code: Select all
grep -H -r "/opt/lampp" /opt/dev-xampp/lampp | xargs sed -i 's/"opt/lampp"/"opt/dev-xampp/lampp"/g'

I know that the normal command of "sed" looks like this
Code: Select all
sed -i 's/foo/bar/g'


But since I need to change directory values which include the slash character, I am not sure if its a good idea use that command or how to use it.
At that moment it occur to me that may be there is a way to use the:
Code: Select all
tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

But changing something that will directly install everything on an specific location. Is there such an option?

Thank you for your help!
anakinsge
 
Posts: 3
Joined: 22. October 2012 23:10
XAMPP Version: 5.6.3
Operating System: Ubuntu

Re: Two Instances of XAMPP

Postby anakinsge » 24. October 2012 22:07

I been looking all over the net, searching for this with out getting a good answer.
I have found, that in some code of the xampp binary files the directory /opt/lampp is hard coded so, basically what I am trying to do is not possible.
My need is to have 2 instances of MySql (basically because I want to give to the production instance more resources like memory, and some other values on my.cnf to be changed) and 2 instances of Apache-PHP, so I can have warnings and errors shown, and some other minor stuff.
I could install apache+php+mysql separated and get into the fight with ubuntu to get them to run along with xampp. But it would be a really pain in you know where to have one instance running a bunch of other modules and apps like the xampp one in which i would develop and get things working, only to pass it to the production instance and find out that modules are missing and things don't work for mysterious reasons.

PLEASE HELP, ANY ADVICE WILL BE APPRECIATED.
anakinsge
 
Posts: 3
Joined: 22. October 2012 23:10
XAMPP Version: 5.6.3
Operating System: Ubuntu


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 10 guests