hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : Install Squid
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

Install Squid

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 06-27-2006, 08:28 AM
Scott.Mc Scott.Mc is offline
Engineer
 
Join Date: Jan 2005
Location: Scotland, UK
Posts: 2,380

Install Squid


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/...TABLE14.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, all that's left is to Configure Squid

-Scott

Reply With Quote


Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host A2 Hosting Launches Customizable VPS Hosting Plans Web Hosting News 2012-06-07 15:11:57
Web Host Cyber Host Pro Launches New VPS Packages Web Hosting News 2011-09-16 18:15:55
Web Host A2 Hosting Launches QuickInstaller Tool for VPS Plans Web Hosting News 2011-08-19 20:00:53
Web Host HostingZoom Adds Softaculous Auto-Installer to Hosting Plans Web Hosting News 2011-08-17 17:52:34
Attracta Offers Single-Click Web App Installation to Customers Web Hosting News 2011-08-11 16:57:09


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?