Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You don't have permission to access /squidreport/ on this server.
Could someone help?
The error is very clear; the web engine doesn't have permissions to open that directory. What are the permissions on the directory in question? You don't tell us what version/distro of Linux you're using, but chances are the http server is running as user apache, so if the directory isn't owned by apache, or doesn't have permissions to write/read, you'll get that error.
So, either chmod that directory to give further permissions, or chown to get things to work without granting additional permissions. The chown is a bit safer, since you could then have the directory at 755 (rwxr-xr-x), owned by apache:apache.
ok, I'm in RHEL6.3, I already changed the owner as apache:apache but still having this error.
But it's ok right now, there is some perl package missing and it's working now.
You still don't post what the permissions/owner of that directory looks like, and are you sure the web engine is running as user apache, and not something else?
And your reply is confusing...you say you're still having the error, then say it's WORKING? The two can't both be true...if you can't access that directory, things will fail and NOT work. And since you're using Red Hat Enterprise, have you contacted Red Hat support? You are PAYING FOR RHEL, right?
I mean, I already changed owner to apache:apache and had this permissions :
#ls -lr /var/www/
drwxr-xr-x 4 apache apache 4096 Aug 12 14:30 squidanalyzer
But it was not solving the issue but when I run manually /usr/local/bin/squid-analyzer I found that this package is missing perl-Time-HiRes, after installing this package it's working now.
The error is very clear; the web engine doesn't have permissions to open that directory. What are the permissions on the directory in question? You don't tell us what version/distro of Linux you're using, but chances are the http server is running as user apache, so if the directory isn't owned by apache, or doesn't have permissions to write/read, you'll get that error.
So, either chmod that directory to give further permissions, or chown to get things to work without granting additional permissions. The chown is a bit safer, since you could then have the directory at 755 (rwxr-xr-x), owned by apache:apache.
Hi!
I'm changing permissions for directory, but error (Forbidden You don't have permission to access /squidreport on this server.) is standing...
p.s. Slackware 14.1
P.P.S. For Apache version >= 2.4
Quote:
Alias /squidreport /var/www/squidreport
<Directory /var/www/squidreport>
Options -Indexes -FollowSymLinks -MultiViews
AllowOverride None
Order deny,allow
# Deny from all
# Allow from 127.0.0.1 Require all granted
</Directory>
Last edited by f0b; 09-24-2015 at 10:55 AM.
Reason: Solved!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.