Solved

squid installation

Posted on 2000-02-22
6
287 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
  • 3
  • 3
6 Comments
 
LVL 2

Expert Comment

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

Author Comment

by:Baldev021700
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:Baldev021700
Comment Utility
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
Comment Utility
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
Comment Utility
Thanx a lot ...It's working fine.I can now go ahead with fine tuning the configuration files.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now