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.
PHP FPM
CentOS 9
dnf config-manager --set-enabled crb
yum install oniguruma-develPHP Installation
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-pdo-mysql=/usr/local/mysqlBuild and install:
make
make installCopy the default configuration files:
cp php.ini-development /usr/local/etc/php.ini
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:
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-fpm- Log in to post comments