Operating Systems > Linux and UNIX

squid error

<< < (2/3) > >>

voidmain:

quote:Originally posted by The Master of Reality / B0B:
when i set the cache_effective_user as squid it gives me the same error message.
--- End quote ---


What does an "ls -ld /var/lib/squid" tell you?

[ December 06, 2002: Message edited by: void main ]

Master of Reality:

--- Code: ---
--- End code ---

voidmain:
Is there anything else in those subdirectories that would not be owned by the user squid? To make sure do:

# chown -R squid:squid /var/lib/squid

Also, look in your error logs for other possible messages (/var/log/messages and the logs in the squid log direcetory).

One thing that looks odd to me is you say the squid cache is /var/lib/squid, yet there are other subdirectories in there. The logs should not be in the cache directory and there should not be a directory called "cache" under it. The cache directory should be able to be completely empty and when you run "squid -z" it will create a structure somgthing like this:


--- Code: ---
--- End code ---

I think you have some things wrong with your configuration.

Master of Reality:
the squid cache directory is set to /var/lib/squid/cache the squid log directory is /var/lib/squid/logs  (those are set in /etc/squid/squid.conf). And squid (user) home is /var/lib/squid

voidmain:
I don't know that the squid user's home directory has anything to do at all with the operation of Squid but if you were to set it up with the same logic as mine is set up then the home directory should be "/var/lib/squid/cache". I doubt that will fix anything. Is the /var/lib/squid/cache directory completely empty? If it's not delete everything under it and try the "squid -z" again.

In the mean time I'm heading over to http://www.squid-cache.org/ to look at the FAQ.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version