Announcement

Collapse
No announcement yet.

Apache2 403 userdir error driving me nuts [SOLVED]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Apache2 403 userdir error driving me nuts [SOLVED]

    I upgraded to 10.10 and now none of my userdirs are accessible.

    The error log shows this error:

    (13)Permission denied: access to /~<user> denied

    I've tried chmoding to 711, 755 and 777, setting the group and/or user owner to www-data and nothing works.

    Nothing has changed in my file permissions, ownership or apache2.conf from before the upgrade so I don't understand what's going on here.

    I've been messing with this for two days, found lots of people complaining of this issue but the only ones that were solved were done by setting folder permissions or ownership.

    My userdir.conf:
    Code:
    <IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root
    
        <Directory /home/*/public_html>
    #        AllowOverride FileInfo AuthConfig Limit Indexes
            AllowOverride None
            Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
            <Limit GET POST OPTIONS>
                Order allow,deny
                Allow from all
            </Limit>
            <LimitExcept GET POST OPTIONS>
                Order deny,allow
                Deny from all
            </LimitExcept>
        </Directory>
    </IfModule>
    Any help is greatly appreciated.

    #2
    Re: Apache2 403 userdir error driving me nuts

    I did figure out what the issue was. Every folder in the path to the site folder has to be set to o+x. I discovered this by running a namei -m on the index.html file in my public_html folder and saw that my home folder was the only on in the path not set to o+x. I made that change and was then able to bring up my site.

    I checked the permissions on all of the other user's home folders and they were all the same, had to change them all. Those folders were set to o-x in 9.10 and things worked fine so this must be a security change in 10.10. Some notice about that would have been nice.

    Again, just to be clear, every folder in the path to the site has to be set to o+x.

    Comment


      #3
      Re: Apache2 403 userdir error driving me nuts

      Now the question is, how do I marked this as solved?

      Comment


        #4
        Re: Apache2 403 userdir error driving me nuts

        Just retun to your first post in this thread and click the modify button. Then, just add [SOLVED] to the subject.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Apache2 403 userdir error driving me nuts

          Ah, OK. Thanks!

          Comment

          Working...
          X