Page 1 of 1

how to change the location of xampp

PostPosted: 16. February 2008 00:12
by Joshua Pirihi
greetings
I am a xampp for linux user, in ubuntu, and i am needing to store a copy of xampp on an external drive. however, xampp gets grumpy if its not in /opt/lampp. how am i to fix this? change all the paths in /opt/lampp/lampp? or is there another way i should do it.
thanks
technofreak

PostPosted: 16. February 2008 17:25
by Scory
The only way to install (and execute) Xampp (for Linux)on a different folder than /opt/lampp is creating a symbolic link from the "real" installation folder to /opt/lampp.

Or directly "mount" the external drive to /opt/lampp - that will work (in that case) also, as you have to mount the external drive anyway.

Via Symbolic Link
=========

Assuming that Xampp is installed (and mounted) to /mnt/drive (replace with the real name), simply enter in a Shell: (# is the shell prompt)

# ln -s /mnt/drive /opt/lampp

/opt/lampp MUST NOT exist before.

Via mount
=======

Assuming, that youre external drive is formatted with fat32 filesystem and is called /dev/drive (replace with the real name), simply enter in a Shell:

# mount -f fat32 /dev/drive /opt/lampp

/opt/lampp MUST exist before (vc. vs. to the case before).

You may specify some options to the mount command to grant access to special userid for the mounted drive, for example:

# mount -t fat32 /dev/drive /opt/lampp -o uid=www,gid=users,umask=002

Enter "man mount" in a Shell to learn about mount command.

PostPosted: 17. February 2008 04:43
by Joshua Pirihi
Thanks scory thats just exactly what i needed

Thank You

PostPosted: 09. March 2008 15:31
by steve5
This is very helpfull because the /opt filesystem
on my system wasn't large enough. It ran out of space
before the thing was fully extracted.
Thank You