Unix Technical Forum

Squid problems (first time run).

This is a discussion on Squid problems (first time run). within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I've configured squid to run on my Slackware server. I've read the manual and configured everything ok, but ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:54 PM
Nuno Paquete
 
Posts: n/a
Default Squid problems (first time run).

Hi,

I've configured squid to run on my Slackware server.
I've read the manual and configured everything ok, but when I try to start
the server it can't create/access swap files.
So, I've run "squid -z" to initialize the files, but I receive this error
message:

FATAL: Failed to make swap directory /var/lib/squid/cache/00: (13)
Permission denied
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.

Can anyone help me?
Thanks in advance,

Nuno Paquete



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:54 PM
DB
 
Posts: n/a
Default Re: Squid problems (first time run).

Nuno Paquete wrote:
> Hi,
>
> I've configured squid to run on my Slackware server.
> I've read the manual and configured everything ok, but when I try to start
> the server it can't create/access swap files.
> So, I've run "squid -z" to initialize the files, but I receive this error
> message:
>
> FATAL: Failed to make swap directory /var/lib/squid/cache/00: (13)
> Permission denied
> Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
>
> Can anyone help me?
> Thanks in advance,
>
> Nuno Paquete
>
>
>


Create a group and user name squid with home directory /usr/local/squid,
then chown that directory and subdirs to squid:squid. I think you can
then squid -z as root, but then start squid as user squid. I'm sure all
this is in the docs.

DB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:56 PM
Wild Wizard
 
Posts: n/a
Default Re: Squid problems (first time run).

DB wrote:

>> FATAL: Failed to make swap directory /var/lib/squid/cache/00: (13)
>> Permission denied
>> Squid Cache (Version 2.5.STABLE6): Terminated abnormally.

>
> Create a group and user name squid with home directory /usr/local/squid,
> then chown that directory and subdirs to squid:squid. I think you can
> then squid -z as root, but then start squid as user squid. I'm sure all
> this is in the docs.


depends on how you configure squid as to where files go, but this particular
person has happily supplied us with the exact error so ....

go through squid.conf and find out what user/group it is set to run as
then chown -R /var/lib/squid to that user/group

--
Arbitrary systems, pl.n.:
Systems about which nothing general can be said, save "nothing
general can be said."

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com