how to change the location of xampp

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

how to change the location of xampp

Postby Joshua Pirihi » 16. February 2008 00:12

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
Joshua Pirihi
 
Posts: 2
Joined: 16. February 2008 00:05

Postby Scory » 16. February 2008 17:25

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.
Scory
 

Postby Joshua Pirihi » 17. February 2008 04:43

Thanks scory thats just exactly what i needed
Joshua Pirihi
 
Posts: 2
Joined: 16. February 2008 00:05

Thank You

Postby steve5 » 09. March 2008 15:31

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
steve5
 
Posts: 6
Joined: 02. March 2008 13:25


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 36 guests