#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    23
    Rep Power
    0

    Apache (MAMP) will not parse .htaccess files


    Hello All,

    I'm using MAMP on a fresh installation of OSX 10.7 Lion. For some reason, I can't get Apache to parse any .htaccess files - they all have proper permissions (owned by my user:group and set to 0755), and all .htaccess AllowOverride directives are set to All, rather than "None".

    I've also edited OSX's "secret" httpd.confs in /private/etc/apache2 and /private/etc/apache2/users/ to reflect the aforementioned.

    Am I missing something? Please let me know - I greatly appreciate any advice you guys can offer.

    Thanks!
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,247
    Rep Power
    9400
    So if you put random nonsense in them you do not get 500 errors?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    23
    Rep Power
    0
    Exactly
  6. #4
  7. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,247
    Rep Power
    9400
    Four possibilities:
    1. The files aren't named exactly ".htaccess". On Windows it's easy to accidentally have a ".txt" extension, maybe there's a similar problem on Macs.
    2. Apache is configured to look for those files under a different name. Look for an AccessFileName directive.
    3. AllowOverride is still set to None and you're editing the wrong httpd.confs. As far as I can find the correct one is /Applications/MAMP/conf/apache/httpd.conf. Muck that one up and try starting Apache - you should get an error.
    4. There's a AllowOverride None that's overriding the All you have earlier. Check <Directory>s.

IMN logo majestic logo threadwatch logo seochat tools logo