• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

Forbidden error of Apache

hi does any one of the 29,839 experts know how to change the permission of Apache?

i have a squid box , i am trying to have acces to a folder in it which is: http://192.186.10.1/video_cache
but it gives me
 Forbidden
You don't have permission to access /video_cache/ on this server.


--------------------------------------------------------------------------------

Apache/2.2.3 (CentOS) Server at 192.186.10.1 Port 80

how to have access ???

the directory is in /var/spool/squid/
i used those commands of chown & Chmod but no luck

chown -R squid:squid video_cache
chmod -R 755 video_cache

any idea??
0
adaheem
Asked:
adaheem
  • 5
  • 3
1 Solution
 
caterham_wwwCommented:
First check your error.log to see the cause of the error: Either a httpd.conf-configuration issue or a file system issue.
0
 
adaheemAuthor Commented:
here is the httpd error.log
error-log
0
 
caterham_wwwCommented:
There were "Permission denied: access to /video_cache/ denied" errors (file system), but they disappeared, so that seems to be solved. The last error
"Directory index forbidden by Options directive: /var/spool/squid/video_cache/" means that you requested a directory but there is no index file (e.g. index.html) and the listing of the directory contents is not allowed by server configuration.

You may try to request a file within that folder instead of the folder or allow the directory listing with

<Directory "/var/spool/squid/video_cache">
 Options +Indexes
</Directory>

in your httpd.conf (somewhere at the bottom).
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
adaheemAuthor Commented:
any help ? here is my new log
error-log
0
 
caterham_wwwCommented:
There are now entries like "Permission denied: access to" . That means, apache resp. the user under which apache operates, cannot read the directory/files - it's a file system issue.
Are you using SELinux (security enhanced linux)? Sometimes a policy forbids access, but I think this applies to /home/ dirs only.

Your files are owned by user squid, but world has read access according to your chmod. What about the x-bit for world on higher levels for the folders /var/spool/squid/, /var/spool/ and /var/?
0
 
adaheemAuthor Commented:
please can you explain more how to use chown & chmod to have access to the folder i want?
its /var/spool/squid/video_cache
0
 
adaheemAuthor Commented:
it was abug in the software i am using and its fixed
0
 
adaheemAuthor Commented:
your answer was helpfull in many things.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now