XAMPP for Lunux from USB flash

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

XAMPP for Lunux from USB flash

Postby Skulptron » 04. January 2014 15:51

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.
Skulptron
 
Posts: 3
Joined: 04. January 2014 15:36
XAMPP Version: 1.8.3-3
Operating System: Lubuntu 13.10

Re: XAMPP for Lunux from USB flash

Postby Skulptron » 10. January 2014 05:19

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.
Skulptron
 
Posts: 3
Joined: 04. January 2014 15:36
XAMPP Version: 1.8.3-3
Operating System: Lubuntu 13.10

Re: XAMPP for Lunux from USB flash

Postby Nobbie » 10. January 2014 10:47

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

Re: XAMPP for Lunux from USB flash

Postby Skulptron » 10. January 2014 13:22

Interesting, what is exact procedure?
Does it means that I need to make /opt/lampp folders before I run XAMPP installation?
Skulptron
 
Posts: 3
Joined: 04. January 2014 15:36
XAMPP Version: 1.8.3-3
Operating System: Lubuntu 13.10


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests