4

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

blade19899
  • 26,994

1 Answers1

1

Since this is Ubuntu 13.10, Apache 2.4 is installed which means that this can be the problem - I had the same problem yesterday and changed the permissions of every directory up to DocumentRoot which did not help and then found the linked to post.

In the <directory> section (which you might have to add) just change Allow from all to Require all granted.

chesedo
  • 1,749
  • 1
  • 14
  • 25