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