sudo apt -y install lighttpdhttp://10.0.0.1 - Ist man noch über das LAN verbunden, nutzt man die IP-Adresse der Notfallbox - z.B. http://192.168.42.123
sudo systemctl start lighttpd && sudo systemctl enable lighttpdsudo systemctl status lighttpdActive: active (running)sudo apt -y install php php-fpm php-cgisudo nano /etc/php/7.4/fpm/php.ini;cgi.fix_pathinfo=1 das führende Semikolon entfernensudo systemctl start php7.4-fpm && sudo systemctl enable php7.4-fpmsudo systemctl status php7.4-fpmActive: active (running)sudo cp /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-available/15-fastcgi-php.conf.origsudo nano /etc/lighttpd/conf-available/15-fastcgi-php.conffastcgi.server wie folgt anpassen, speichern und schliessen:fastcgi.server += ( ".php" =>
((
"socket" => "/var/run/php/php7.4-fpm.sock",
"broken-scriptfilename" => "enable"
))
)
sudo lighttpd-enable-mod fastcgi && sudo lighttpd-enable-mod fastcgi-phpsudo systemctl restart lighttpdsudo nano /var/www/html/phpinfo.php<?php phpinfo(); ?>
Nachdem nun alles funktioniert, fehlen nur noch die Inhalte für den Webbrowser, um aus diesem PC eine „Notfallbox“ zu machen.