Change installation dir on ubuntu 8.04

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

Change installation dir on ubuntu 8.04

Postby sgmbest12321 » 27. August 2008 05:37

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
sgmbest12321
 
Posts: 2
Joined: 27. August 2008 05:21

Postby Wiedmann » 27. August 2008 09:55

A symlink can help.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Nobbie » 27. August 2008 10:25

>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
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Postby sgmbest12321 » 27. August 2008 13:58

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
sgmbest12321
 
Posts: 2
Joined: 27. August 2008 05:21


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 15 guests