Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache gives permission errors...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Detegr
n00b
n00b


Joined: 17 Dec 2005
Posts: 7

PostPosted: Sat Dec 17, 2005 9:29 pm    Post subject: Apache gives permission errors... Reply with quote

Hi. My computer is running Apache/2.0.54 @ Gentoo, but when i'm trying to open http://myip.here/~username it gives me following error:

Forbidden
You don't have permission to access /~user/ on this server.

I'm tried to change chmods/chowns, groups etc. but with no luck.
But: I can access to files in /~user/file.txt, but not in /~user/ If i put index.html file in public_html, that also works. Then i can see index.html when i go to http://myip.here/~username

Apache test page in http://myip.here works good also.

At this moment, chowns:

/home/user = 777
/home/user/public_html = 777

One thing i noticed, i don't have httpd.conf anywhere, is that necessary? I tried to google similar errors, but answers didn't help me.


Thanks.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20584

PostPosted: Sat Dec 17, 2005 9:44 pm    Post subject: Reply with quote

It's covered in /etc/conf.d/apache2

In the APACHE2_OPTS variable, you need to add "-D USERDIR". Note that the -D is need for each option, so you might have something like APACHE2_OPTS="-D DEFAULT_VHOST -D USERDIR"
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Detegr
n00b
n00b


Joined: 17 Dec 2005
Posts: 7

PostPosted: Sun Dec 18, 2005 9:30 am    Post subject: Reply with quote

Thanks for the answer, put USERDIR in there, but with no help :\ Still same error.

/etc/conf.d/apache2 :

APACHE2_OPTS="-D SSL -D FASTCGI -D DEFAULT_VHOST -D USERDIR"


Any other ideas? :)
Back to top
View user's profile Send private message
Detegr
n00b
n00b


Joined: 17 Dec 2005
Posts: 7

PostPosted: Sun Dec 18, 2005 9:40 am    Post subject: Reply with quote

Detegr wrote:
Thanks for the answer, put USERDIR in there, but with no help :\ Still same error.

/etc/conf.d/apache2 :

APACHE2_OPTS="-D SSL -D FASTCGI -D DEFAULT_VHOST -D USERDIR"


Any other ideas? :)


Never mind, fixed it. Finally!

In /etc/apache2/conf/commonapache2.conf, line 863: Options MultiViews -Indexes Includes Followsymlinks
I modified -Indexes to Indexes, and that's it :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum