I want to run an additional site on pi hole's lighttpd. It is generated by FCGI. However, execution of CGI / FCGI seems to be disabled by pi hole's lighttpd configuration. Does anyone know the reasons behind this? Any disadvantage if I change the corresponding lighttpd config?
lighttpd should be configured to run PHP via CGI. Beyond that, we don't explicitly intend to disable CGI generally. If you change the config (instead of adding a config at /etc/lighttpd/external.conf or elsewhere), note that it will be overwritten when repairing or updating.
pi@noads:~ $ apt show php7.0-cgi
[..]
Description: server-side, HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php CGI interpreter built
for use in Apache 2 with mod_actions, or any other CGI httpd that
supports a similar mechanism. Note that MOST users probably
want the php7.0-fpm package.
.
The following extensions are built in: Core date filter hash libxml openssl
pcntl pcre Reflection session SPL standard zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
pi@noads:~ $ apt show php7.0-fpm
[..]
Description: server-side, HTML-embedded scripting language (FPM-CGI binary)
This package provides the Fast Process Manager interpreter that runs
as a daemon and receives Fast/CGI requests. Note that MOST Apache users
probably want the libapache2-mod-php7.0 package.
.
The following extensions are built in: Core date filter hash libxml openssl
pcre Reflection session SPL standard zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.