I finally debugged and fixed the problem. The steps are as follows:-
- Getting squid.conf right
The default user (and group) for running squid is 'squid'. This is not present in configuration.
I also ran into problems with configuration of squid.pid file.The default location is /var/run/squid.pid , where an non root user cannot create file. So i moved it to /var/run/squid directory.
The changes to /etc/squid/squid.conf are listed below.
I also ran into problems with configuration of squid.pid file.The default location is /var/run/squid.pid , where an non root user cannot create file. So i moved it to /var/run/squid directory.
The changes to /etc/squid/squid.conf are listed below.
cache_effective_user squid cache_effective_group squid pid_filename /var/run/squid/squid.pid
- Fixing the file permissions and create directories
We need to set the file permissions for squid configuration, log folders to squid:squid and also create the directory /var/run/squid
The shell commands are:-
sudo chown squid:squid /etc/squid/squid.conf sudo mkdir /var/run/squid sudo chown -R squid:squid /var/run/squid sudo chown -R squid:squid /var/log/squid
- Starting squid.
The squid on ubuntu 10.10 is triggered using service command. Start squid and check logs in /var/log/squid
sudo service squid start
You should see the squid running....
1 comment:
i have the same problem with the 10.10 intalled march 23th 2011.
I check the config /etc/squid/squid.conf
the right setting was OK
i just remove the pid file:
rm /var/run/squid.pid
and
start squid
that it.
Post a Comment