Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

squid installation

Can anybody help me with the steps and procedures to install and configure squid on Linux.

0
Baldev021700
Asked:
Baldev021700
  • 3
  • 3
1 Solution
 
ReinierCommented:
Yes, but first help us by saying which Linux distro you use.
0
 
Baldev021700Author Commented:
I am using Linux 2.2.12-20 and squid2.3.STABLE.tar.gz as source.
0
 
ReinierCommented:
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now