How to load squid was Re:localhost

jim barnes mail.list.mail at gmail.com
Sun Feb 10 15:48:08 UTC 2008


On Saturday 09 February 2008 02:14:00 pm Karl Larsen wrote:
>     I got the ip of localhost corrected and know what it is used for.
> But that is not the problem. I want to use squid to process data going
> to my Firefox but it will not load on my Ubuntu. Here is what it says:
>
> Unpacking squid-common (from .../squid-common_2.6.14-1ubuntu2.1_all.deb)
> ... Selecting previously deselected package squid.
> Unpacking squid (from .../squid_2.6.14-1ubuntu2.1_i386.deb) ...
> Setting up squid-common (2.6.14-1ubuntu2.1) ...
> Setting up squid (2.6.14-1ubuntu2.1) ...
> Creating squid spool directory structure
> FATAL: Could not determine fully qualified hostname.  Please set
> 'visible_hostname'
>
> Squid Cache (Version 2.6.STABLE14): Terminated abnormally.
>
> So I need a 'visable hostname' but know that the ip is 127.0.0.1
>
>
> Karl

Not knowing if you are using a gui to admin squid, i.e. swat or webmin, we'll 
look squid.conf directly.

Within the file /etc/squid/squid.conf look under the heading
ADMINISTRATIVE PARAMETERS
for the tag
#  TAG: visible_hostname
#       If you want to present a special hostname in error messages, etc,
#       define this.  Otherwise, the return value of gethostname()
#       will be used. If you have multiple caches in a cluster and
#       get errors about IP-forwarding you must set them to have individual
#       names with this setting.
#
#Default:
# none

run the command hostname

root at gateway:~# hostname
gateway

For squid to start, I insert the tag into squid.conf: (below TAG: 
visible_hostname or at the end of file is fine)

visible_hostname gateway.localnet

and restart squid

you can use a name such as hostname.site , hostname.mynetwork , etc., it 
doesn't really matter.

HTH,
-- 
Jim Barnes
--
Certainly the game is rigged. Don't let that stop you; 
if you don't bet, you can't win.            -Lazarus Long 
--
Linux 2.6.22.16-0.2-default




More information about the ubuntu-users mailing list