Re: [squid-users] Re: cache directory initialization failed

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 12 Feb 2014 12:08:05 +1300

On 2014-02-12 05:41, khadmin wrote:
> HI,
> Finally i find a solution for my problem.
> Indeed i Uncomment and adjust the following to add a disk cache
> directory.
> #cache_dir ufs /usr/local/squid/var/cache/squid 100 16 256 the
> squid.conf
> file
> The solution was on the squid web page
> http://www.squid-cache.org/Doc/config/cache_dir/
> <http://www.squid-cache.org/Doc/config/cache_dir/>
> Now the initialization works good and the directories are created under
> /var/sppols/squid3

The problem seems to be a bug in webmin.

1) Squid does not require disk cache. It will run fine these days using
memory as the cache (faster even sometimes).
   Thus the directive is commented out by default to prevent beginners
from having to fiddle around with squid -z and directory configurations
just to start Squid.

2) Squid -z was just informing that there were no cache disk directories
to be formatted according to the squid.conf.

3) Running squid -z without any configured disk cache will have no
effect other than printing that message.

Amos
Received on Tue Feb 11 2014 - 23:08:16 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 12 2014 - 12:00:04 MST