|Last modified: 16-06-2020|
rpm -ql lighttpd
chkconfig --level 345 lighttpd on
To allow directory listing: dir-listing.activate = "enable"
Lighttpd uses the FastCGI version of PHP, not the usual CGI version. To check if you already have it, run either "php -v" or "php-cgi -v", and check that it says "(cgi-fcgi)". If not, here's the whole procedure to add PHP to Lighttp:
Note: Not sure it's necessary to add "cgi.fix_pathinfo=1" to /etc/php.ini, as it seems to be added by some package in /etc/php.d/lighttpd.ini.
Likewise, adding "extension=pdo.so" in php.ini doesn't seem necessary, since it can also be found in /etc/php.d/pdo.ini (installed by the php-pdo package.)