Solved

squid installation

Posted on 2000-02-22
6
291 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 100 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
Technology Partners: 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!

 

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

752 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