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.
Revision of lighttpd from Tue, 04/03/2018 - 12:54
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Compiling and Installing
Configure PHP:
./configure \
--with-config-file-path=/usr/local/etc/ \
--enable-fpm \
--enable-pdo \
--enable-mbstring \
--with-gd \
--with-curl \
--with-jpeg-dir \
--with-bz2 \
--with-zlib \
--with-openssl \The --with-apxs2 and --with-apxs configuration options are not required. Add any other PHP options that you need.
MySQL, add:
--with-pdo-mysql=/usr/local/mysql \
--with-mysqli
#--with-mysql=/usr/local/mysqlIf you want to include LDAP support, add:
--with-ldapIf it configures correctly, make and install the binaries:
make
make installPHP configuration
Copy the included .ini file:
cp php.ini-production /usr/local/etc/php.iniEdit /usr/local/etc/php.ini and add:
cgi.fix_pathinfo = 1PHP-FPM Configuration
Copy the default configuration files:
cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.confEdit /usr/local/etc/php-fpm.conf to make it run in the foreground and log messages:
daemonize = no
error_log = /dev/stderr
listen = /var/run/php-fpm.pid
listen.owner = nobody
listen.group = nobody
listen.mode = 0660
pm.status_path = /.status.fpmDaemontools startup
Assuming you have already installed daemontools., create the directories to hold the lighttpd run and logging scripts:
mkdir -p /var/service
cd /var/service
mkdir -m 1755 php-fpm
cd php-fpmCreate the run script (/var/service/php-fpm/run), with the following:
#! /bin/sh
exec 2>&1
exec /usr/local/sbin/php-fpm -FOnce you have saved the file, change it's permissions to it can be executed:
chmod 700 runCreate the logging service:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/run.log
mv run.log run
chmod 700 runCreate the symbolic link to start the php-fpm service
ln -s /var/service/php-fpm /service/php-fpmMake sure mod_fastcgi is loaded in your /service/lighttpd/root/lighttpd.conf:
server.modules += ( "mod_fastcgi" )
index-file.names += ( "index.php" )
fastcgi.map-extensions = (".fpm" => ".php")
fastcgi.server = (
".php" => (
"localhost" => (
"socket" => "/var/run/php-fpm.pid",
"broken-scriptfilename" => "enable"
)
)
)
Restart the lighttpd server. Since we are running it under daemontools:
svc -t /service/lighttpd- Log in to post comments