squid compilation error

General discussion about PLUC and Linux in Pakistan.

squid compilation error

Postby turab » Mon Dec 19, 2005 4:23 pm

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.
turab
Company Havaldaar Major
 
Posts: 154
Joined: Thu Dec 15, 2005 3:36 pm
WLM: iba_lookz@hotmail.com
Yahoo Messenger: turabali@yahoo.com

Creating Swap Directories but getting the following error

Postby linuxgossip » Mon Dec 19, 2005 6:57 pm

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!
linuxgossip
Lance Naik
 
Posts: 18
Joined: Fri Mar 04, 2005 1:48 pm
Location: Ghy

Re: Creating Swap Directories but getting the following erro

Postby LinuxFreaK » Tue Dec 20, 2005 8:39 am

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Re: Creating Swap Directories but getting the following erro

Postby linuxgossip » Wed Dec 21, 2005 2:04 am

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!
linuxgossip
Lance Naik
 
Posts: 18
Joined: Fri Mar 04, 2005 1:48 pm
Location: Ghy


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 1 guest

cron