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??
adaheemAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
adaheemAuthor Commented:
here is the httpd error.log
error-log
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).
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

adaheemAuthor Commented:
any help ? here is my new log
error-log
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/?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
adaheemAuthor Commented:
it was abug in the software i am using and its fixed
adaheemAuthor Commented:
your answer was helpfull in many things.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.