April 20, 2024, 01:26:18 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: squid compiling error  (Read 3872 times)

Offline shani

  • Tux Awared
  • **
  • Posts: 36
squid compiling error
« on: January 13, 2005, 01:28:34 PM »
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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
squid compiling error
« Reply #1 on: January 14, 2005, 10:48:24 AM »
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: [Select]
chown squid:squid /cache

chmod 770 /cache