2010/11/19 Leonardo Vilar <[email protected]>:
> galera, configurei direitinho o meu squid.conf assim como ele exigia mas
> ainda esbarro em um erro de autorização de log e tambe o serviço do squid
> cai em 10 segundos.
>
> root# squid -d 3
> WARNING: Cannot write log file: /var/log/squid/cache.log
> /var/log/squid/cache.log: Permission denied
>          messages will be sent to 'stderr'.
> WARNING: Cannot write log file: /var/log/squid/cache.log
> /var/log/squid/cache.log: Permission denied
>          messages will be sent to 'stderr'.
> 2010/11/19 17:49:20| Starting Squid Cache version 3.1.9 for
> i486-slackware-linux-gnu...
> 2010/11/19 17:49:20| Process ID 13111
> 2010/11/19 17:49:20| With 1024 file descriptors available
> 2010/11/19 17:49:20| Initializing IP Cache...
> 2010/11/19 17:49:20| DNS Socket created at 0.0.0.0, FD 4
> 2010/11/19 17:49:20| Adding nameserver 200.165.132.155 from /etc/resolv.conf
> 2010/11/19 17:49:20| Adding nameserver 200.165.132.148 from /etc/resolv.conf
> 2010/11/19 17:49:20| helperOpenServers: Starting 5/5 'squidGuard' processes
> 2010/11/19 17:49:20| User-Agent logging is disabled.
> 2010/11/19 17:49:20| Referer logging is disabled.
> FATAL: Cannot open '/var/log/squid/access.log' for writing.
>         The parent directory must be writeable by the
>         user 'squid', which is the cache_effective_user
>         set in squid.conf.
> Squid Cache (Version 3.1.9): Terminated abnormally.
> CPU Usage: 0.011 seconds = 0.005 user + 0.006 sys
> Maximum Resident Size: 20592 KB
> Page faults with physical i/o: 0
>
>
> meu squid.conf estar neste link:
> http://pastebin.com/8dNbhnth

Tu tem que dar um chown -R squid:squid no /var/log/squid (cria o
diretório se ele não existe). Por via das dúvidas, também dá um chmod
u+w no mesmo diretório, para ter certeza que o usuário do Squid pode
gravar lá.

-- 
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br

Antes de perguntar:
http://www.istf.com.br/perguntas/

Para sair da lista envie um e-mail para:
[email protected]

Responder a