Mounting EXT4 filesystem from fstab causing problems with APACHE

Discussion in 'Apache' started by jreeseue, Jul 1, 2012.

  1. #1
    I am running Ubuntu 12.04 with Apache/2.2.22 (Ubuntu). Recently I had an NTFS external drive connected which was mounted with fstab via this setting:

    /dev/sdc2  /media/cavalry       auto    rw,user,sync    0       0
    Code (markup):
    I have several directories on this drive that are served by my web server via directory aliases in Apache's configuration. One such directory and its permissions looks like:

    drwxrwxrwx 1 root root 4096 May 28 22:42 econ/
    Code (markup):
    However, I have made the switch to an EXT4 filesystem and am attempting to mount with the follow line in fstab:

    /dev/sdc2  /media/cavalry       ext4    defaults        0       0
    Code (markup):
    With the same directory having permissions:

    drwxrwxrwx 11 josh josh 4096 May 28 22:42 econ/
    Code (markup):
    These permissions and ownerships are identical throughout the whole directory tree leading up to this point. The problem here is that when the EXT4 file system is mounted I am unable to access this directory from the web (receiving a 'do not have permissions error'). I am unable to see (with the obvious difference that the NTFS directory is owned by root while the EXT4 directory is owned by josh) what could possibly be causing this issue.
    The Apache configuration for this directory is as follows:

    Alias /econ /media/cavalry/server_backup/econ
    
    <Directory /media/cavalry/server_backup/econ> 
          Order allow,deny 
          Options Indexes FollowSymLinks MultiViews 
          Allow from All 
          AuthType Basic 
          AuthName "Login" 
          AuthUserFile /etc/apache2/passwords/users 
          Require user research
    </Directory>
    Code (markup):
    If anyone can offer any assistance I would be most appreciative.
     
    jreeseue, Jul 1, 2012 IP