1

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

When I try to set XAMPP configuration file /opt/lampp/etc/httpd.conf:

<Directory />
       Order allow,deny
       Allow from all
</Directory>

    DocumentRoot "/media/username/USB_FLASH/www"

<Directory "/media/username/USB_FLASH/www">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Require all granted
</Directory>

I get:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
Error 403

5
  • Is your usb formatted in NTFS/FAT? You should use ext4 instead.
    – Braiam
    Jan 10, 2014 at 2:26
  • I can't format usb flash disk to ext4 because I use it on Linux and Windows... anyway after whole day I found solution
    – skulptron
    Jan 10, 2014 at 2:39
  • Which was the solution? FAT doesn't support Linux permissions
    – Braiam
    Jan 10, 2014 at 2:41
  • Please move your answer from your question into an answer below. That way, you can accept it and the question will be automatically shown as 'solved'
    – kiri
    Jan 10, 2014 at 2:47
  • I can do that after 8 hours - not now... I'm new here
    – skulptron
    Jan 10, 2014 at 2:50

1 Answer 1

1

I found the solution after 5 hours of searching...

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

Then, I made a symbolic link with Terminal emulator:

sudo ln -s /media/username/USB_FLASH/www /opt/lampp

and then a symbolic link is made from /media/username/USB_FLASH/www to /opt/lampp.

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .