Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache no permission to access..., doesnt display images,...
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
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Wed Jul 21, 2004 1:06 am    Post subject: apache no permission to access..., doesnt display images,... Reply with quote

Hi,

I've now spent 8 hours searching the forums, google, newsgroups... to no avail.

Apache loads my main page, but the images are not displayed. If I try to load an image directly I get this:

Code:

Forbidden


You don't have permission to access /images/topB.jpg on this server.


The same happens if I try to access another page (directly of by clicking on a link on the main page).

I have edited /etc/apache2/conf/commonapache2.conf and tried to allow everything in /var/www/localhost/htdocs , even in / ...

I have added Indexes and All to Options; etc... nothing works.

I have tried to add an entry for /var/www/localhost/htdocs/images.

Files permissions are 755, 644, apache:apache.

The error log is filed with lines as:
Code:

Permission denied: /var/www/localhost/htdocs/images/blank.gif/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable


In the error log, the image names appear as if they where directories, why is that ? (as in htdocs/images/blank.gif/.htaccess)

I have only 1 .htaccess file in /var/www/localhost/htdocs , it has the same permissions as everything else.

What more can I do ?
Back to top
View user's profile Send private message
sessio
n00b
n00b


Joined: 23 Jul 2004
Posts: 22
Location: tampere finland perkele

PostPosted: Wed Jul 28, 2004 7:08 am    Post subject: Reply with quote

having the same problem.
the documentroot used to work when i had directory / on "allow from all".
then i read about the security and denied that and allowed only specific dirs.
~userdirs have had the problem all the way, though.

using php5 and apache2.
Back to top
View user's profile Send private message
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Wed Jul 28, 2004 11:27 am    Post subject: Reply with quote

I have now fixed it by setting all references of Allowoverride to None in the directory settings of the apache config.
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