If you run as root, you have to set your cache_effective_user, and then chown 
the log files to the effective user.

For example, in my squid.conf, I have the following line:

        cache_effective_user squid

So I had to make sure I did the following before running squid:

        Chown -R squid /usr/local/squid/var/logs
        Chown -R squid <path to your local cache if you are using one>

Hope this helps =)

-Adam

-----Original Message-----
From: Michelle Dawson [mailto:[email protected]] 
Sent: Thursday, January 27, 2011 9:47 AM
To: [email protected]
Subject: Re: [squid-users] My compiled 3.2.0.4 version says it is 2.6

Thank you for you reply,

Yes there were two versions of squid which is very odd since there were no 
versions on it before I compiled it, because I have checked it.

I managed to remove the 2.6 now via yum remove command, but now I dont really 
know how to start squid 3.2. The service squid start does not work as service 
squid status does not exist.

I've tried by starting squid in the /usr/local/squid/sbin/ folder:

[root@vm1 squid-3.2.0.4]# /usr/local/squid/sbin/squid status
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log
/usr/local/squid/var/logs/cache.log: Permission denied
        messages will be sent to 'stderr'.

But i get the message above. Do you know what that means? Am i trying to run 
squid as the wrong user ( root ) ?

Thank you,

Michelle D. (she ;) )

Reply via email to