Network Troublshooting > Linux Proxy Server Support

squid compiling error

(1/1)

shani:
Hi every one!
I am getting error like that when i am compaliing Squid

[root@Rapid root]# /opt/squid/sbin/squid -z
2005/01/13 21:23:24| Creating Swap Directories
FATAL: Failed to make swap directory /cache: (13) Permission denied
Squid Cache (Version 2.5.STABLE7): Terminated abnormally.
CPU Usage: 0.002 seconds = 0.002 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 8
[root@Rapid root]#


How can I solve this problem

Thanks

Ricky:
Hello , this is a most common problem, to solve that you have to make sure that by the use under which you are runing squid should be able to read / write on the directory you are using for cache .

say you are running squid under user "squid"
then

--- Code: ---chown squid:squid /cache

chmod 770 /cache  
--- End code ---

Navigation

[0] Message Index

Go to full version