LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 06: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, 06:58 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
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



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 06:54 AM
Problem with starting squid Dedah Linux - Networking 11 03-08-2006 04:15 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 03:45 AM
Squid error even before starting Crasherz Linux - Networking 8 11-21-2003 03:56 AM
Squid starting problem?? deepika Linux - Networking 4 10-10-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration