Page 1 of 1

Change installation dir on ubuntu 8.04

PostPosted: 27. August 2008 05:37
by sgmbest12321
Hello.
I would like to install xampp to a different directory other that /opt/
i tried changing the install
Code: Select all
 sudo tar -xvf xampp-linux-1.6.7.tar -C /opt/

to
Code: Select all
 sudo tar -xvf xampp-linux-1.6.7.tar -C /myinstallfolder/

but upon starting lampp via
Code: Select all
sudo /myinstallfolder/lampp/lampp start

i would get error messages because the file lampp had the original directory, opt, instead of my directory
but even after changing all of the /opt/... to /myinstallfolder]/... i still got error messages from multiple other files that also use /opt/...

my question boils down to:
is there a way to install lampp to a different directory other than /opt/ ?

i would think it would be something like getting the source and using
Code: Select all
./configure prefix=[i]myinstallfolder[/i]

but i that doesn't work

any thoughts and suggestions would be greatly appreciated

PostPosted: 27. August 2008 09:55
by Wiedmann
A symlink can help.

PostPosted: 27. August 2008 10:25
by Nobbie
>any thoughts and suggestions would be greatly appreciated

Unfortunately, you *must* install Xampp in /opt/lampp - this is hard coded in some binary files.

But you can use it later on in a different folder by creating a symbolic link from /opt/lampp to your personal folder:

Code: Select all
ln -s /opt/lampp /myinstallfolder/lampp


You also must have root priviliges to install Xampp in /opt and to start/stop Xampp.

This also works vice verse, you may install Xampp into your local folder, but *must* create a symbolic link to /opt:

Code: Select all
ln -s /myinstallfolder/lampp /opt/lampp

PostPosted: 27. August 2008 13:58
by sgmbest12321
how would i go about doing the second option

just install it to /myinstallfolder/, not modify any files and then do the command
Code: Select all
ln -s /myinstallfolder/lampp /opt/lampp


thanks for the quick response both of you