[squid-users] cache.log: Permission denied

From: Monzur Md.. Alam <monzur_at_citechco.net>
Date: Wed, 6 May 2009 16:30:53 +0600 (BDT)

I have a trouble when i have traying creat swap file in Proxy server ( Squid v3).

[root_at_gclc ~]# /usr/local/squid/sbin/squid &
[1] 3422
[root_at_gclc ~]# WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.l og
/usr/local/squid/var/logs/cache.log: Permission denied
         messages will be sent to 'stderr'.

But my all prmission is ok....
Please see..
[root_at_gclc ~]# cd /usr/local/squid/var/
[root_at_gclc var]# ls -al
total 24
drwxr-xr-x 3 squid squid 4096 May 6 09:10 .
drwxrwxrwx 9 squid squid 4096 May 6 09:08 ..
drwxr-xr-x 2 squid squid 4096 May 6 12:32 logs
 -----------------------------------------------------------------------
-----------------------------------------------------------------------
[root_at_gclc var]# cd /usr/local/squid/var/logs/
[root_at_gclc logs]# ls -al
total 52
drwxr-xr-x 2 squid squid 4096 May 6 12:32 .
drwxr-xr-x 3 squid squid 4096 May 6 09:10 ..
-rw-r--r-- 1 squid squid 0 May 6 09:32 access_log
-rw-r----- 1 squid squid 0 May 6 12:32 access.log
-rw-r--r-- 1 squid squid 0 May 6 09:32 cache_log
-rw-r----- 1 squid squid 6978 May 6 13:25 cache.log
-rw-r--r-- 1 squid squid 0 May 6 09:35 cache_store_log
-rw-r--r-- 1 squid squid 5 May 6 12:32 squid.pid

and my [root_at_gclc ~]# vi /usr/local/squid/etc/squid.conf
 
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#coredump_dir /usr/local/squid/cache
cache_dir ufs /usr/local/squid/cache 1000 16 256

Thanks
Monzur
Received on Wed May 06 2009 - 11:13:45 MDT

This archive was generated by hypermail 2.2.0 : Sat May 09 2009 - 12:00:01 MDT