HeltonBarbosa
(usa FreeBSD)
Enviado em 15/05/2012 - 06:59h
Bom dia, uso o FreeBSD com squid 3.1. O squid funciona e inicia normal, porém, fica aparecendo na tela a seguinte mensagem:
(squid): Cannot open '/usr/local/etc/squid/logs/access.log' for writing. The parent directory must be writeable by the user 'squid', witch is the cache_effective_user set in squid.conf.
Quando eu instalei e configurei o squid, segui os seguintes passos:
# mkdir /usr/local/etc/squid/logs
# mkdir /usr/local/etc/squid/cache
# touch /usr/local/etc/squid/logs/access.log
# chown squid /usr/local/etc/squid/logs
# chown squid /usr/local/etc/squid/cache
# chown squid /usr/local/etc/squid/logs/access.log
e segue meu arquivo squid.conf:
# INICIO DO SQUID.CONF
http_port 3128 transparent
visible_hostname HeltonBarbosa
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 85 MB
ipcache_size 2048
fqdncache_size 2048
cache_dir ufs /usr/local/etc/squid/cache 2000 32 512
cache_access_log /usr/local/etc/squid/logs/access.log
cache_mgr heltonbs@gmail.com
################################### WINDOWS UPDATE XP ################################################
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320 100% 43200 reload-into-ims
###############################################################################################################
acl intranet src 192.168.255.0/29
acl localhost src 127.0.0.1/32
acl SSL_ports port 443
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, snews
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 #multilling http
http_access allow intranet
http_access allow localhost
http_access deny all
# FIM DO SQUID.CONF
Bom, pesquisei na net e não consegui resposta que resolve-se o problema. Gostaria de contar com a ajuda de vocês. Desde já agradeço!