Page 1 of 1

XAMPP for Lunux from USB flash

PostPosted: 04. January 2014 15:51
by Skulptron
How to install XAMPP for Linux to USB flash and use on different Linux PC's?

Like XAMP for Windows which I use on several Windows PC's from USB flash.

Re: XAMPP for Lunux from USB flash

PostPosted: 10. January 2014 05:19
by Skulptron
I found that I can't install XAMPP to USB flash... but I found very good solution for me ...
XAMPP needs to be installed to Linux... then open XAMPP configuration file /opt/lampp/etc/httpd.conf and set like this:
Code: Select all
<IfModule unixd_module>
    User username
    Group username
</IfModule>
# username means your linux login username!

<Directory />
    AllowOverride All
    Require all granted
</Directory>

    DocumentRoot "/opt/lampp/www"

<Directory "/opt/lampp/www">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Require all granted
</Directory>
# DocumentRoot path and Directory path are symbolic link to /media/username/USB_FLASH/www folder!

Now I can view my php files (in browser) from my usb flash :D
--------------

I made symbolic link with Terminal emulator:
Code: Select all
sudo ln -s /media/username/USB_FLASH/www /opt/lampp

and then in /opt/lampp folder symbolic link /opt/lampp/www has been created.

------------------

I use Lubuntu 13.10 with XAMPP for Linux 1.8.3 and my USB flash is FAT32 formated.

Re: XAMPP for Lunux from USB flash

PostPosted: 10. January 2014 10:47
by Nobbie
The easiest way to install Xampp to an USB stick is to mount the USB stick to /opt/lampp (instead of /media/xxxxx) and then simply run the installation procedure.

Re: XAMPP for Lunux from USB flash

PostPosted: 10. January 2014 13:22
by Skulptron
Interesting, what is exact procedure?
Does it means that I need to make /opt/lampp folders before I run XAMPP installation?