After Installing my apache, i edited the /etc/apache2/apache2.conf file, and added in the bottom-line, the following code:
<VirtualHost *:80>
DocumentRoot /media/username/DATA/docs/pathtowebsite/website
ServerName localhost
</VirtualHost>
The DocumentRoot points to a external NTFS partition!
But after adding the lines, and restarting the apache2 service i get the following when ticking localhost in the Firefox adres-bar:
Error
Forbidden
You don't have permission to access / on this server.
Apache/2.4.6 (Ubuntu) Server at localhost Port 80
I tried fiddling with the fstab per this answer, but same error, after restart.
I then installed ntfs-config, checked the enable write support for internal device box, but same error after restart?
and ntfs-config, also edits the fstab file, so am not sure what to remove and what to keep?
#Entry for /dev/sda5 :
UUID=3490454b-b5b0-4296-ae98-51ab08eecabc / ext4 errors=remount-ro 0 1
#Entry for /dev/sda1 :
UUID=506C44946C44772E /media/SYSTEM ntfs-3g defaults,locale=nl_NL.UTF-8 0 0
#Entry for /dev/sda3 :
UUID=01CCC676F2E07A60 /media/blade/DATA ntfs-3g defaults,nosuid,nodev,locale=nl_NL.UTF-8 0 0
#Entry for /dev/sda2 :
UUID=9A3E8BF63E8BC9A9 /media/sda2 ntfs-3g defaults,locale=nl_NL.UTF-8 0 0
/dev/sda6 none swap sw 0 0
#UUID=01CCC676F2E07A60 /mnt/DATA ntfs-3g defaults,nosuid,nodev,locale=nl_NL.UTF-8 0 0
#UUID=01CCC676F2E07A60 /mnt/DATA ntfs-3g auto,users,permissions 0 0
I gksu nautilus to my external ntfs partition and tried to edit the permisions from my website folder, but, the group keeps jumping back to root. Also doesn't work via command-line.
Question: How can i edit my permissions on a NTFS drive, so that the www-data user can read my index file?
Note: Running Ubuntu 13.10