Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-15-2004, 11:05 AM   #1
LQ Newbie
Registered: Apr 2004
Location: venezuela
Posts: 7

Rep: Reputation: 0
Squid Configuration (Visible Hostname)

Squid Configuration (visible_hostname)


I am trying to configure squid on Red Hat. When I start to run the Squid appear on the screen the following meesage:

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

Squid Cache (Version 2.5.STABLE4): Terminated abnormally.
CPU Usage: 0.020 seconds = 0.020 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 252

I don't Know what can I do


Old 04-15-2004, 12:06 PM   #2
LQ Newbie
Registered: Apr 2004
Distribution: redhat, debian
Posts: 6

Rep: Reputation: 0
i got this error sometime ago.... i think you should change your hostname to "" then try to run squid -z before starting squid....
Old 04-15-2004, 12:32 PM   #3
Senior Member
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
This error happens frequently on RH machines from my experience. Simply set VISIBLE_HOSTNAME=
to the full hostname of your machine in your squid.conf and you should be set to go. I think it is caused by the automatic determination of the hostname failing.
Old 08-19-2008, 02:46 PM   #4
LQ Newbie
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
I installed Ubuntu server 8.04 and installed squid

I entered a visible_hostname in the squid.conf file, but still squid will not start up stating the same problem as above.

Any ideas???
Old 02-22-2009, 06:41 AM   #5
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
Question Same

Hi, i am getting my own server up and running, using the new Ubuntu, i have installed apache2 and PHP5 and MySQL, then Squid. I have bin through all the documentation on the apache2 website and it tells you how to set up Squid, it said to set up visible_hostname, so i did. then it said i had to run the command: sudo /etc/init.d/squid restart

but then it said:

FATAL: Could not determine fully Qualified hostname. Please set `visible_hostname`.
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
CPU Usage 0.028 seconds = 0.012 user + 0.016 sys
Maximum Resident Size: 0KB
Page faults with physical i/o: 0

I have set the visible hostname but to enable it i need to restart Squid, but to restart Squid, it needs to be already set. I dont get this at all. lol.

Any One Know??

Every where i have looked, like on here, everyone is having exactly the same problem.


Old 02-22-2009, 10:04 AM   #6
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
i have a visable host name, which is:
visible_hostname Server1

but the bad parts are that the `visable_hostname` bit is actually part of the name and i cant get rid of it, and it still wont work
Old 02-23-2009, 06:36 AM   #7
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
check this thread:
usually, have to set your fqdn hostname in /etc/sysconfig/network
Old 02-25-2009, 01:20 PM   #8
LQ Newbie
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
Thanx Chitambira. it is working fine now. squid will start without an error.


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
Hostname Configuration strimp099 Linux - Networking 1 12-28-2004 03:48 AM
acl with hostname in squid proxy jomy Linux - Networking 1 11-20-2004 09:26 AM
squid fully qualified hostname DutchBoy Linux - Software 2 09-08-2004 11:17 PM
Squid - how to save the hostname in the log Dfdf Linux - Networking 0 07-19-2003 01:23 PM
RH 9, Netz und DNS Config, Fehler "set visible hostname" j.kopitzke Linux - Newbie 0 06-19-2003 12:31 AM > Forums > Linux Forums > Linux - Software

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