Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

squid installation

Posted on 2000-02-22
6
Medium Priority
?
297 Views
Last Modified: 2013-11-13
Can anybody help me with the steps and procedures to install and configure squid on Linux.

0
Comment
Question by:Baldev021700
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 2

Expert Comment

by:Reinier
ID: 2546606
Yes, but first help us by saying which Linux distro you use.
0
 

Author Comment

by:Baldev021700
ID: 2546770
I am using Linux 2.2.12-20 and squid2.3.STABLE.tar.gz as source.
0
 
LVL 2

Accepted Solution

by:
Reinier earned 300 total points
ID: 2546930
Kernel 2.2.12-20, that RedHat 6.1 isn't it?

I don't want to ruin the fun of compiling yourself, but why don't you grab a binary RPM here:

http://rufus.w3.org/linux/RPM/rawhide/1.0/i386/RedHat/RPMS/squid-2.3.STABLE1-4.i386.html

Download it.

Install it with "rpm -i squid-2.3.STABLE1-4.i386.rpm". If rpm complains about missing dependencies, you can find RPMS for them via the same page.

Go to /etc/squid/. Open the file squid.conf in you favorite editor.
Search the following lines, read what is explained there and configure to your liking:
- # OPTIONS WHICH AFFECT THE CACHE SIZE
- # LOGFILE PATHNAMES AND CACHE DIRECTORIES
- # ACCESS CONTROLS
Give special care to the last one, as you probabely don't want to cache for the entire world.

Start squid with "/etc/rc.d/init.d/squid start". Point some browser's proxysettings at your host (port 3128) and test.

If you want squid started at bootup then make a softlink in the directories "/etc/rc.d/rc[345].d/". E.g. "ln -s ../init.d/squid ./S83squid". Make sure the squid is started after "network" by choosing a larger number. Also create the necesary symlinks in the directories "/etc/rc.d/init.d/rc[06].d/". E.g "ln -s ../init.d/squid ./K10squid". These last ones will stop squid at shutdown and reboot.

Plan yourself a free day and discover all the treasures in /usr/doc/squid-2.3.STABLE1/
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:Baldev021700
ID: 2546978
Thanx for the help.But can u point out what mistake I am doing.

I downloaded the SQUID-2.3.STABLE.tar.gz
Then I did a tar of the file.Then I ran the command ./configure --prefix=/usr/local/squid.
Then I ran make all
Then finally I did make install.
After that squid should run right if i execute squid -z and again squid.What is the log file or how can I check if squid is running properly or not??
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2547087
Just point some browser's proxysettings at your host (port 3128) and see if you get any pages. If squid is not with you you will see an error message from the browser.

You should see squid somewhere in the output of "ps aux | less".

The log files are usually in /var/log/squid/. If not, then check the squid.conf file for the entries "cache_log", "store_log" and "cache_access_log".

The nice extra you get from a binary package from RedHat is among others the startup script in /etc/rc.d/init.d/.
0
 

Author Comment

by:Baldev021700
ID: 2547170
Thanx a lot ...It's working fine.I can now go ahead with fine tuning the configuration files.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question