Two Instances of XAMPP
Posted: 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:
I know that the normal command of "sed" looks like this
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:
But changing something that will directly install everything on an specific location. Is there such an option?
Thank you for your help!
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!