cPanel Tutorials | Security Guides | News Feeds | Search
Navigation
Home
Guides
Password Generator
Files
News Feeds
Hosting News
Contact Us
Documentation
Site Search
 
Latest Guides
Largest number of established connections
Kill all processes matching certain strings.
Install FFmpeg-PHP
Install FFmpeg
Configure Squid
Install Squid
Password Security
Install Teamspeak
Disable SELinux
Install RoundCube on cPanel

Viewing Guide 

Install Squid
Written by: HostGeekZ



This guide is wraped for easy viewing, to see the non wraped version Click Here



Let's install squid and then later configure it as an anonymous proxy.

Login as root and execute,


cd /usr/local/src
wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE14.tar.gz
tar -zxvf squid-2.5.STABLE14.tar.gz
cd squid-2.5.STABLE14
./configure --prefix=/usr/local/squid --disable-ident-lookups
make all
make install



Now lets add the user squid, create the cache directory and then set permissions.


useradd -d /usr/local/squid/cache/ -r -s /dev/null squid >/dev/null 2>&1
mkdir /usr/local/squid/cache
chown -R squid:squid /usr/local/squid/cache
chown -R squid:squid /usr/local/squid
chmod -R 755 /usr/local/squid/cache




You will now have to generate the cache files,

sudo -u squid /usr/local/squid/sbin/squid -z



Now lets change the cache effective user and group to squid.

perl -pi -e 's/# cache_effective_user nobody/cache_effective_user squid\ncache_effective_group squid/g' /usr/local/squid/etc/squid.conf



That's us complete, all we have to do now is start squid,

/usr/local/squid/sbin/squid



Squid should now be installed and running, lets Configure Squid.

User Comments 
     
Name:
Email: If you provide your email address you will receive updates for this guide to it.
Comment:
Verification We require you to add the following 2 values together for anti-spam purposes.
17 + 48
   

©Copyright HostGeekZ 2004-2007. All Rights Reserved.
Resources