Hallo,
SELinux enabled?

Best regards,
sich

On 10/21/2011 12:50 PM, Adam Binks wrote:
Hi,

I hope somebody can help :)

CentOS 5.5 (2.6.18-194.el5)
Squid Cache: Version 2.6.STABLE21
SquidGuard: 1.4 Sleepycat Software: Berkeley DB 4.3.29

I have installed squid&  squidGuard (as above) and I am having the followin= g 
problem.

When I start squid with "service squid start" I get the following errors in=
  /var/log/squid/cache.log:

2011-10-21 11:27:32 [32053] (squidGuard): can't write to logfile /usr/local= 
/squidGuard/log/squidGuard.log
2011-10-21 11:27:32 [32053] New setting: dbhome: /usr/local/squidGuard/db
2011-10-21 11:27:32 [32053] New setting: logdir: /usr/local/squidGuard/log
2011-10-21 11:27:32 [32053] init domainlist /usr/local/squidGuard/db/allowa= 
ll.destdomainlist
2011-10-21 11:27:32 [32053] loading dbfile /usr/local/squidGuard/db/allowal= 
l.destdomainlist.db
2011-10-21 11:27:32 [32052] (squidGuard): can't write to logfile /usr/local= 
/squidGuard/log/squidGuard.log
2011-10-21 11:27:32 [32052] New setting: dbhome: /usr/local/squidGuard/db
2011-10-21 11:27:32 [32052] New setting: logdir: /usr/local/squidGuard/log
2011-10-21 11:27:32 [32052] init domainlist /usr/local/squidGuard/db/allowa= 
ll.destdomainlist
2011-10-21 11:27:32 [32052] loading dbfile /usr/local/squidGuard/db/allowal= 
l.destdomainlist.db
2011-10-21 11:27:32 [32053] Error db_open: Permission denied
2011-10-21 11:27:32 [32052] Error db_open: Permission denied
2011-10-21 11:27:32 [32053] Going into emergency mode
2011-10-21 11:27:32 [32052] Going into emergency mode

However, if I start squid manually with "squid -f /etc/squid/squid.conf" th= ere is 
no issue and both squid&  squidGuard start without issue.

I have checked the permissions on all DB files&  log files and they are fin=
e:

-rwxr-xr-x 1 squid root  11K Oct 21 11:04 squidGuard.log -rwxr-xr-x  1 squid 
squid 8.0K Oct 21 11:01 allowall.destdomainlist.db

I have rebuilt all of the DB files with squidGuard -C all still not noavail= . 
I have installed this solution many times before and never hit this probl= em 
so I am confused as to what I am forgetting.

Look forward to your replies.

Thanks
Adam




Reply via email to