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


Since Google seems to be coming here this is the link you really want for installing Squid on windows (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/

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



  1. ’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: Logo

You are commenting using your 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 )

Connecting to %s