LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-15-2006, 07:31 AM   #1
crackerB
Member
 
Registered: Aug 2006
Posts: 37

Rep: Reputation: 15
squid not starting in Fedora 5


I installed my Fedora server with 2 NIC cards..
While starting my squid I am getting the error message like this.

[root@fedora2 ~]# service squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 2495 Aborted $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 53: 2496 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1
[FAILED]
[root@fedora2 ~]#

Can anybody comment on this
 
Old 11-15-2006, 07:58 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: OpenBSD, Slackware, XP
Posts: 347

Rep: Reputation: 31
What version of squid are you using? - 2.5 or 2.6?

Usually when squid is installed the first time, you need to create the disk cache manually.

# /usr/local/sbin/squid -z

In my case (OpenBSD) it is installed in /usr/local/sbin.

But before doing this, you need to manually edit squid.conf (usually in /etc/squid) to set the IP and port squid will listen and bind to. In my case, I prefer to bind it only to localhost:3128 or 127.0.0.1:3128 so that I would no longer configure all of my clients browser if they don't use a proxy before.

http_port 127.0.0.1:3128

Also you will need to set the most basic ACL under the ACCESS CONTROL section such as this:

acl my_net src 192.168.0.0/24
http_access allow my_net
http_access allow localhost

Consult your logs for error hint usually /var/log/messages or might be in /var/spool/squid/logs in your case.

Then try to start squid and check out /var/spool/squid/logs/cache.log to see if squid started normally. You should also check if there is a listening connection via netstat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid not starting..... Ricky Linux - Networking 5 05-31-2006 07:54 AM
Problem with starting squid Dedah Linux - Networking 11 03-08-2006 05:15 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 04:45 AM
Squid error even before starting Crasherz Linux - Networking 8 11-21-2003 04:56 AM
Squid starting problem?? deepika Linux - Networking 4 10-10-2003 12:13 PM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration