squid compilation error

General discussion about PLUC and Linux in Pakistan.
Post Reply
turab
Company Havaldaar Major
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
Contact:

squid compilation error

Post by turab »

Salam,
i am trying to compiling new version of squid i.e. Version 2.5.STABLE12-20051219 but getting the following error
[root@lynx etc]# squid -z
2005/12/20 03:47:26| Creating Swap Directories
FATAL: Failed to make swap directory /var/spool/squid/00: (13) Permission denied
Squid Cache (Version 2.5.STABLE12-20051219): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 7


The permission to the squid directory
[root@lynx spool]# ll
total 48
drwxr-xr-x 2 root root 4096 Jul 19 23:02 anacron
drwx------ 3 daemon daemon 4096 Jul 19 22:49 at
drwxrwx--- 2 smmsp smmsp 4096 Jul 20 00:22 clientmqueue
drwx------ 2 root root 4096 Feb 19 2003 cron
drwxr-xr-x 2 root root 4096 Jan 24 2003 lpd
drwxrwxr-x 2 root mail 4096 Dec 20 01:29 mail
drwx------ 2 root mail 4096 Jul 20 00:22 mqueue
drwxr-xr-x 2 rpm rpm 4096 Feb 27 2003 repackage
drwxrwxrwt 2 root root 4096 Mar 13 2003 samba
drwxrw---- 3 squid squid 4096 Dec 20 04:07 squid
drwxr-xr-x 2 root root 4096 Feb 24 2003 up2date
drwxrwxrwt 2 root root 4096 Feb 3 2003 vbox


and uncomment the following lines
cache_effective_user squid
cache_effective_group squid


please guide me further to resolve it :(

Thanks in advance.
linuxgossip
Lance Naik
Posts: 18
Joined: Fri Mar 04, 2005 1:48 pm
Location: Ghy

Creating Swap Directories but getting the following error

Post by linuxgossip »

Dear turab,

run this command

[root@lynx etc]#chown squid:squid /var/spool/squid

if ur cache directory is /var/spool/squid.

If this doesnot solve ur purpose, check the "cache_dir" tag in squid.conf file.



Regards

linuxgossip

Enjoy Linux!
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re: Creating Swap Directories but getting the following erro

Post by LinuxFreaK »

Dear linuxgossip,
Salam,
linuxgossip wrote:# chown squid:squid /var/spool/squid
Its better if he run this command in this way :)

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

Best Regards.
Farrukh Ahmed
linuxgossip
Lance Naik
Posts: 18
Joined: Fri Mar 04, 2005 1:48 pm
Location: Ghy

Re: Creating Swap Directories but getting the following erro

Post by linuxgossip »

Dear LinuxFreaK,

You are absolutely right. I mistyped the line chown -R squid:squid /<path to squid log dir> as chown squid:squid

Thank you for bringing it to notice.


Regards

linuxgossip

Enjoy Linux!
Post Reply