| You need to build the Cache directory first. The default is 100MB so if you
don't have that much room, or want more, modify /usr/local/etc/squid/squid.conf
appropriately The the '-z' option is used to build the cache
# /usr/local/sbin/squid -z
I got this message back - Permission denied
09:09:29| Creating Swap Directories FATAL: Failed to make
swap directory /usr/local/squid/cache/00: (13) Permission denied Squid
Cache (Version 2.1.PATCH2):Terminated abnormally. CPU Usage: 0.022
seconds Maximum Resident Size: 1000 KB Page faults with physical
i/o: 0
After some search on the mailing list archives I
found this solution:
> a. There is no space left on drive.
> b. You have no /usr/local/squid/logs/ directory created before. (squid does
> not create it itself. Create one manually)
> c. Your /usr/local/squid/logs/cache.log is owned by root. You should
> change it like this. "chown nobody.nogroup /usr/local/squid/logs/cache.log"
>
> Note that all of the files in ../log and ../cache directories must be owned
> like that too.
I then checked for the directories and they where there, but the owner was root. so:
# chown nobody.nogroup /usr/local/squid/logs mygateway
# chown nobody.nogroup /usr/local/squid/cache
So now I tried to build the cache again:
# /usr/local/sbin/squid -z
2000/05/09 09:14:32| Creating Swap Directories
This time it worked! |