LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-25-2009, 07:18 AM   #1
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Squid fails to staart


squid fails to start in my computer... i have a fedora core 6 and when i start squid it just says failed.. what do i do?

[root@localhost ~]# service squid start
Starting squid: .................... [FAILED]
[root@localhost ~]# service squid start
Starting squid: [FAILED]
[root@localhost ~]# service squid start
Starting squid: [FAILED]

i need it to be configured as a reverse proxy as well... what do i do if it just does not work?? it is installed
 
Old 02-25-2009, 07:22 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
service squid restart
take a look in the logfiles
/var/log/syslog
/var/log/messages
/var/log/squid/*
 
Old 02-25-2009, 07:33 AM   #3
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Question

i tried restarting.. it still said failed.

in the /var/log/squid/squid.out file i find thwe following.. i cant understand it.. help!



2009/02/23 14:43:31| parseConfigFile: line 103 unrecognized: ' #mcast_icp_query_timeout 2000'
2009/02/23 14:43:31| parseConfigFile: line 105 unrecognized: 's'
2009/02/24 05:02:30| parseConfigFile: line 103 unrecognized: ' #mcast_icp_query_timeout 2000'
2009/02/24 05:02:30| parseConfigFile: line 105 unrecognized: 's'
squid: ERROR: Could not read pid file
/var/run/squid.pid: (13) Permission denied
2009/02/25 11:17:26| parseConfigFile: line 103 unrecognized: ' #mcast_icp_query_timeout 2000'
2009/02/25 11:17:26| parseConfigFile: line 105 unrecognized: 's'
FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'

Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 9
2009/02/25 17:04:20| parseConfigFile: line 103 unrecognized: ' #mcast_icp_query_timeout 2000'
2009/02/25 17:04:20| parseConfigFile: line 105 unrecognized: 's'
2009/02/25 17:19:40| parseConfigFile: line 103 unrecognized: ' #mcast_icp_query_timeout 2000'
2009/02/25 17:19:40| parseConfigFile: line 105 unrecognized: 's'
2009/02/25 17:32:05| ACL name 'our_networks' not defined!
FATAL: Bungled squid.conf line 29: http_access allow our_networks
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
2009/02/25 17:32:07| ACL name 'our_networks' not defined!
FATAL: Bungled squid.conf line 29: http_access allow our_networks
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
2009/02/25 18:31:45| ACL name 'our_networks' not defined!
FATAL: Bungled squid.conf line 29: http_access allow our_networks
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
2009/02/25 19:09:17| ACL name 'our_networks' not defined!
FATAL: Bungled squid.conf line 29: http_access allow our_networks
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
2009/02/25 19:09:17| ACL name 'our_networks' not defined!
FATAL: Bungled squid.conf line 29: http_access allow our_networks
Squid Cache (Version 2.6.STABLE4): Terminated abnormally.



if the squid.conf file is wrong then please send me the correct conf file.. i intend to setup squid as a reverse proxy for my own sys.. how do i do that on FC6???
 
Old 02-25-2009, 07:35 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
There are problems with the squid.conf file.
Did you made changes to the file?
Try to use the original file.
 
Old 02-25-2009, 08:03 AM   #5
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
thank you it worked..

could you tell me what lines have to be uncommented and maybe how to work with squid as well. i would like it to watch port 80.. can it be done? usually when i change it from the dafault line it refuses to work
 
Old 02-25-2009, 08:45 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
The default configuration should work.
Use the default port.(3128)
Set your browser to use proxy on that port.
 
Old 02-25-2009, 12:02 PM   #7
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Exclamation

i did that and it works .. but i need to configure squid as a reverse proxy. most websites instruct i have to use the following code. but this fails to start squid..what do i do now?


http_port 80
httpd_accel_host visolve.com
httpd_accel_port 81
httpd_accel_single_host on
httpd_accel_with_proxy on
 
Old 02-25-2009, 12:07 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
http_port 80
httpd_accel_host visolve.com
httpd_accel_port 81
httpd_accel_single_host on
httpd_accel_with_proxy on
Did you changed these values in the config file, or added them?
You need to change them
 
Old 02-25-2009, 12:09 PM   #9
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
i just copied these from a website.. i really dont know how to work with them.. i just pasted it in the conf file and squid fails to start.. what modifications should i do?
 
Old 02-25-2009, 12:38 PM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Perhaps this can help
http://beginlinux.com/server_trainin...e-proxy-server
 
Old 02-26-2009, 12:46 AM   #11
wizcrack.fedora
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thumbs up

thanks... it worked.. now squid works fine!!
 
  


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 fails to start on RHEL 5 server linaru Linux - Enterprise 1 01-24-2008 08:47 PM
squid fails to start on RHEL4 dsids Linux - Software 0 11-23-2006 01:42 AM
squid fails on autos.msn.com kdb4 Linux - Networking 0 07-10-2006 03:39 PM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM
squid service fails to stop farhan Linux - Networking 1 03-09-2003 08:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 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