Share your knowledge at the LQ Wiki.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 01-24-2008, 04:19 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
Unhappy squid fails to start on RHEL 5 server

regards to all.
i've been unable to start squid on the server. i used 'system-config-services' and also the direct
'system squid start' command. the error message that is thrown up is-

init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54: 4384 Aborted $SQUID -z -F -D >>/var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 53: 4385 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1

i inspected the /var/log/squid/squid.out file and found the following message on several lines-

FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'

this has baffled me no end. can anyone instruct me on how to get squid up and going in this case?
Old 01-24-2008, 09:47 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If Squid doesn't not get a value returned by gethostname(), it looks up its visible_hostname setting for the name of the host it is running on. You can either set the visible_hostname value in squid.conf or alter your /etc/hosts file to include the box's hostname and IP address.



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
X Server fails to Start arindom SUSE / openSUSE 5 10-25-2007 04:17 AM
x server fails to start. jkdas12 Linux - Newbie 1 07-21-2007 03:13 AM
Server fails to start after softraid extension browny_amiga Linux - Server 2 03-13-2007 05:40 AM
squid fails to start on RHEL4 dsids Linux - Software 0 11-23-2006 02:42 AM
Sound server fails to start! Nilangshu Linux - Hardware 1 09-24-2006 10:13 PM > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:35 PM.

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