Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've install Squid by

yum install squid

and followed the instructions through this tips.

by the time I started Squid and it shows the error that

 init_cache_dir /var/spool/squid... /etc/init.d/squid: line 62: 15908 Aborted                 $SQUID -z -F -D 
 /var/log/squid/squid.out 2>&1

some of the logs are here...

2012/02/09 15:57:37| unrecognised basic auth scheme parameter 'childred'

FATAL: auth_param basic program /usr/lib/squid/ncsa_auth: (2) No such file or directory

Squid Cache (Version 2.6.STABLE21): Terminated abnormally.

CPU Usage: 0.004 seconds = 0.000 user + 0.004 sys

Maximum Resident Size: 9824 KB

Page faults with physical i/o: 0

EDITED I've searched and the output is

dpkg-query: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory

Can anybody advise me some solutions ?

share|improve this question
    
Try updatedb && locate ncsa_auth. –  Bart De Vos Feb 9 '12 at 13:48

1 Answer 1

2 Problems I think.

1.

The file /usr/lib/squid/ncsa_auth does not exist according to the error. You can check this by running the following command:

file  /usr/lib/squid/ncsa_auth

If you wan't to get Squid running without authentication, have a look at your squid-config and comment lines that have to do with authentication.

Your file wil probably contain the following lines:

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Bla bla what you show your users
auth_param basic credentialsttl 2 hours
auth_param basic case sensitive off

If you want to locate ncsa_auth on your system, use the following command:

rpm -qa | grep ncsa_auth

or, alternatively:

updatedb && locate ncsa_auth

You can then change the location in your config file. Make sure the squid-user had appropriate rights to the binary.

2.

You made a typo in your configuration.

childred should be children. See the config-exerpt above.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.