SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
spawn-fcgi
cd /extra/src
wget http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.gz
tar zxf spawn-fcgi-1.6.3
cd spawn-fcgi-1.6.3
Automatic Startup
FastCGI can be supervised by daemontools.
Assuming you have already installed daemontools, create the directories to hold the lighttpd run script, logging script, and config files:
cd /var/service
mkdir -m 1755 fast-cgi
cd fast-cgi
Create the run
script (/var/service/fast-cgi/run
), with the following:
#!/bin/sh
# You should replace xxx with the user you want php to run as (and www-data with the user lighty runs as)
exec 2>&1
PHP_FCGI_CHILDREN=2 \
PHP_FCGI_MAX_REQUESTS=1000 \
exec /usr/bin/spawn-fcgi -n -s /var/run/lighttpd/php-xxx.sock -n -u xxx -U nobody -- /usr/local/bin/php-cgi
Create the logging service:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/run.log
mv run.log run
chmod 700 run
Create the symbolic link to start the service
ln -s /var/service/fast-cgi /service/
- Log in to post comments