In my article Setting up a silent/low energy consumption home server (DHCP/DNS/SMB/UPnP) are featured two perl script to provide a web interface to reset Samba password and to monitor (allow or ban) connections on a wifi (hostapd).
It’s not sophisticated and I have no plans to make it so. It fits a simple purpose.
I added to my list of Debian -utils package so if you happen to use it, you should proceed as follow.
First, note somewhere the www-data MySQL password. You probably don’t remember it. It was hardcoded. Get it typing:
"^my \$db_password "/srv/www/sysadmin/index.pl
Then update the package. Assuming you already got the -keyring package:
apt-get install stalag13-utils-websysadmin
Next, you put the www-data MySQL password in the fresh new conffile /etc/websysadminrc. It looks like:
# MySQL database password
db_password = HEREITGOES
# wifi setup
wlan = wlan1
wlan_deny = /etc/hostapd/hostapd.deny
wlan_conf = /etc/hostapd/hostapd.conf
Make sure this file is readable to and only to www-data:
chmod 600 /etc/websysadminrc
chown www-data /etc/websysadminrc
It should be working. You need to cleanup outdated files (that have been renamed since then):
rm -f /usr/local/bin/sysadmin-update.pl /etc/cron.d/sysadmin
That’s all I can think of.
If you are not doing an upgrade but an install, the package -utils-nginx provide /etc/nginx/sites-available/fcgi as sample in order to set up Perl FastCGI.