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?
I already tried to install perl but the error persisted. The only difference after installing perl is that the http 500 error takes a while to appear and no error is recorded in the file /var/log/lighttpd/error.log
I didn’t get your point. I’ve already made a throroughtly analisis of current system log and no error was found, neither from NUTS nor any other service. The only error recorded was in lighttpd log file (as mentioned earlier), that ceases after installing perl.
I found that there isn’t a nut config file in /etc/lighttpd/conf.d. What do you think?
Here is my /etc/lighttpd/conf.ddirectory contents: