LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-12-2014, 03:59 AM   #1
ttinvent
LQ Newbie
 
Registered: Jul 2014
Posts: 17

Rep: Reputation: Disabled
log analyzer error


Hi,

I installed squidanalyzer-5.4.tar.gz, following this tuto http://squidanalyzer.darold.net/install.html and setting as recommandation but when I run http://hostname/squidreport I get error below :

You don't have permission to access /squidreport/ on this server.

Could someone help?
 
Old 08-12-2014, 09:04 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by ttinvent View Post
Hi,
I installed squidanalyzer-5.4.tar.gz, following this tuto http://squidanalyzer.darold.net/install.html and setting as recommandation but when I run http://hostname/squidreport I get error below :

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.
 
Old 08-12-2014, 09:11 AM   #3
ttinvent
LQ Newbie
 
Registered: Jul 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.

Thanks,
 
Old 08-12-2014, 09:24 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by ttinvent View Post
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?
 
Old 08-12-2014, 09:45 AM   #5
ttinvent
LQ Newbie
 
Registered: Jul 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
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.

thanks,
 
Old 09-22-2015, 07:30 AM   #6
f0b
LQ Newbie
 
Registered: Sep 2012
Distribution: Slackware64 -current
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
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!
 
  


Reply

Tags
linux, squidaccesslog



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache log Analyzer akhilesh_03 Linux - Newbie 13 05-26-2014 08:06 AM
Log Analyzer error lce411 Linux - Software 1 09-16-2012 02:32 PM
squid-log analyzer OR a good bandwidth analyzer isaaclw Linux - Server 5 06-16-2010 04:17 AM
log analyzer MrSandman Linux - Software 2 09-26-2004 01:38 AM
Log analyzer? subnet_rx Linux - Security 2 11-06-2001 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration