# apt install lighttpd # apt install php5-cgiディフォールトのページ
/var/www/html/index.lighttpd.html
PHPの設定
# lighty-enable-mod fastcgi # lighty-enable-mod fastcgi-php # /etc/init.d/lighttpd force-reloadPythonの設定
server.modules = (再起動
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_cgi",
)
$HTTP["url"] =~ "^/cgi-bin/" { cgi.assign = ( ".py" => "/usr/bin/python" ) }
# systemctl stop lighttpdログの出力場所
# systemctl start lighttpd
Lighttpd+PHP How to get Python to work with Lighttpd?