As noted above, the lighttpd
packages that we require from the EPEL repositories do not appear to be available. CentOS 8 will remain unsupported until the packages are available and/or we remove the lighttpd
from the project.
That said, I have provided a workaround below that will compile lighttpd
from source and edit the install script to remove lighttpd
from the dependencies. I hope this helps
UNSUPPORTED WORKAROUND
WARNING: The following paste contains the commands to set selinux to permissive. The project does not support selinux and will not function properly in enforcing. Please understand the consequences and if you require selinux enforcing, you will need to create a custom selinux policy to allow the project to function properly.
Instructions:
As root
, copy the entire text below and paste to terminal. Do not save as script, ensure you copy all lines including # <- COPY START
all the way to the bottom including # <- COPY END
.
# <- COPY START
if [ ! -f "/usr/local/sbin/lighttpd" ]; then
dnf install -y autoconf make automake libtool pcre-devel zlib-devel bzip2-devel git
git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git
cd lighttpd1.4
./autogen.sh
./configure --disable-dependency-tracking
make
make install
cat << EOF > /etc/systemd/system/lighttpd.service
[Unit]
Description=Lightning Fast Webserver With Light System Requirements
After=syslog.target network-online.target
[Service]
PIDFile=/var/run/lighttpd.pid
EnvironmentFile=-/etc/sysconfig/lighttpd
ExecStart=/usr/local/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable lighttpd
mkdir -p /srv/www
mkdir -p /etc/lighttpd/conf.d
mkdir /etc/lighttpd/vhosts.d
cp doc/config/*.conf /etc/lighttpd/
cp doc/config/conf.d/*.conf /etc/lighttpd/conf.d
groupadd lighttpd
useradd -r -M -g lighttpd lighttpd
mkdir /var/log/lighttpd
chown lighttpd: /var/log/lighttpd
fi
setenforce 0
sed -i "s/^SELINUX=enforcing/SELINUX=permissive/" /etc/selinux/config
dnf install -y epel-release php-json git
git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sed -i "s/lighttpd\slighttpd-fastcgi//" basic-install.sh
chmod +x basic-install.sh
./basic-install.sh
# <- COPY END