Solved

squid installation

Posted on 2000-02-22
6
290 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
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!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how can I install and run a program from a 32GB Micro SDHC card? 8 90
Upgrade BIOS / EUFI at Scale 4 69
VB.NET 2008 Winforms Signing 13 41
IP 10.0.1.2 / 255.0.0.0 61 73
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.

740 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