Squid Cache from scratch

tested on debian11

apt install libtool-bin ed automake autoconf libtool build-essential
./bootstrap.sh

you need to define PREFIX otherwise it would go to /usr/local/squid/ folder.

apt install libssl-dev
./configure --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var \
    --enable-linux-netfilter \
    --with-openssl --without-gnutls \
    --enable-ssl-crtd
# --without-systemd

echo $MAKEFLAGS
make
make install

mkdir /var/cache/squid/
mkdir /var/logs/
chown -R nobody. /var/logs/
chown -R nobody. /var/cache/squid/

mkdir /etc/squid/
cp src/squid.conf.default /etc/squid/squid.conf

which squid
squid -v
squid -v | grep openssl

initialize storage

squid -z -f /etc/squid/squid.conf

start the daemon manually

squid -s -f /etc/squid/squid.conf
ps auxfw | grep squid | grep -v grep

Resources

source setup

https://www.linuxquestions.org/questions/linux-server-73/nobody-user-for-squid-871259/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun