Advertisements

Installing squid 2.7 windows to non defualt drive, installing squid 2.7 windows to d:\

Find this post interesting? Do you like interesting things? Maybe you would like my invention, a connectible candle called a WickBrick!

Get one here http://wickbrick.etsy.com/

WickBrick

Since Google seems to be coming here this is the link you really want for installing Squid on windows

https://michaelellerbeck.com/2009/04/14/chapter-3-the-internet-lockdown/ (Scroll Down to 3.1)

So if you want to install squid for windows on the non default drive its a little tricky. Not that tricky once you figure it out though!

First, unzip your files. Lets say to D:\Squid (The path to your sbin should look like D:\Squid\Sbin)

Next do a search and replace on C:/ (notice forward slash) and replace with D:/ in the D:/Squid/etc/squid.conf file

Then, uncomment the line that specifies meme.conf (do a search and then delete the # in front of the line)

Uncomment unlinkd_program D:/squid/libexec/unlinkd.exe

Uncomment logfile_daemon D:/squid/libexec/logfile-daemon.exe

Uncomment Icon Directory D:/squid/share/icons

UncommentError Directory D:/squid/share/errors/English

Uncomment cache_store_log d:/squid/var/logs/store.log

Uncomment cache_log d:/squid/var/logs/cache.log

Uncomment pid_filename d:/squid/var/logs/squid.pid

Ok, now we are going to install the squid service using the D:/squid/etc/squid.conf file the command to type is

(You have a command prompt at the D:\Squid\Sbin\ folder)

squid -i -f “d:/squid/etc/squid.conf”

Now we need to set the commandline variable of the service to point to the config file as well so type

squid -O “-f d:/squid/etc/squid.conf”

Ok, now initialize the cache using the config file so type

squid -z -f “d:/squid/etc/squid.conf”

Ok, now you can start the service!

net start squid! Enjoy a new path to your squid life

Advertisements

2 Responses

  1. […] Otherwise read this how to install squid in the non default path […]

  2. ’d done everything except this one, squid -z -f “d:/squid/etc/squid.conf”
    That command is not working for me…

    D:\squid\sbin>squid -z -f “d:/squid/etc/squid.conf”
    FATAL: Unable to open configuration file: ôd:/squid/etc/squid.confö: (22) Invali
    d argument
    Squid Cache (Version 2.7.STABLE7): Terminated abnormally.
    CPU Usage: 0.047 seconds = 0.000 user + 0.047 sys
    Maximum Resident Size: 5184 KB
    Page faults with physical i/o: 1396

    abnormal program termination

    I got this error…I’m new to squid pls help me to solve this issue

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: