Search squid archive

cache.log: Permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[root@gclc ~]# /usr/local/squid/sbin/squid &
[1] 3422
[root@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@gclc ~]# cd /usr/local/squid/var/
[root@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@gclc var]# cd /usr/local/squid/var/logs/
[root@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@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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux