Hi guys,
I’m trying to enable NUTS (Network UPS Tools) in my Turris. Everything went well, appropriate usb driver were loaded and I also configured NUT server. After installing ups client (nut-upsc) I was able to view ups status by typing upsc server@localhost
.
The thing is, I tried to end my configuration by installing nut-web-cgi package. It did what what intended, by installing multiple cgi scripts at /www/cgi-bin/nut
directory. However, even though getting a proper html output when manually running upstarts.cgi
script (with or without root privileges) I’m still getting http 500 internal server error when typing https://192.168.1.1/cgi-bin/nut/upsstats.cgi
in my web browser.
Here is my /var/log/lighttpd/error.log
file content:
2022-07-28 02:03:50: (…/src/server.c.1551) server started (lighttpd/1.4.63)
2022-07-29 06:27:17: (…/src/mod_cgi.c.753) stat for cgi-handler /usr/bin/perl: No such file or directory
A side note: I tried earlier to fix this error by installing perl package, and I still got the same http 500 internal server error.
Any ideas how to fix it?