How do I give apache permission to use a directory on an NTFS partition? How do I give apache permission to use a directory on an NTFS partition? apache apache

How do I give apache permission to use a directory on an NTFS partition?


After many many attempts here is what succeeded for me and nothing else that is : changing the configuration of Apache so that it uses www-data (Apache user) no more but my own user instead.

Very simple to do. In my version of Apache the two lines to be changed are in the /etc/apache2/envvars file (it can be another file in another version) :

export APACHE_RUN_USER=www-dataexport APACHE_RUN_GROUP=www-data

I replaced www-data by my user name (here toto :)) :

export APACHE_RUN_USER=totoexport APACHE_RUN_GROUP=toto


In my experience I've always had to remount the drive with RW permissions. found this:

sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever

or:

For NTFS partitions, use the permissions option in fstab.

First unmount the ntfs partition.

Then edit /etc/fstab

Graphical gksu gedit /etc/fstab

Command line sudo -e /etc/fstab

Identify your partition UUID with blkid

sudo blkid

And add or edit a line for the ntfs partition

# change the "UUID" to your partition UUIDUUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0

Make a mount point (if needed)

sudo mkdir /media/windows

Now mount the partition

mount /media/windows

The options I gave you, auto, will automatically mount the partition when you boot and users allows users to mount and umount .

You can then use chown and chmod on the ntfs partition.

Both found here: https://askubuntu.com/questions/11840/how-to-chmod-on-an-ntfs-or-fat32-partition


None of the answers above solve the issue, in fact, the problem is related to Apache itself, not filesystem or permissions.

The only thing you need to do is :

<Directory "/www/mywebdirectoryinapartitioneddisk">    Require all granted</Directory>

this will solve the issue

here the post in my blog explaining everything in detail. It could work on NTFS

http://www.tbogard.com/2014/09/12/making-apache-server-to-read-a-partitioned-disk-the-definitive-solution/