Piaware homepage css lighttpd help

Have been trying to add the piaware homepage to a rpi feeder without reimaging. Have been copying the files and folders from /var/www/html from a working rpi to this one. Am currently getting this page without the buttons. What is missing?

The working unit has this debug command result

pi@c5660:/var/www/html $ sudo journalctl --no-pager -u lighttpd
-- Logs begin at Fri 2021-05-28 03:17:01 EDT, end at Mon 2021-05-31 10:13:16 EDT. --
May 28 03:17:18 c5660 systemd[1]: Starting Lighttpd Daemon...
May 28 03:17:19 c5660 systemd[1]: Started Lighttpd Daemon.
pi@c5660:/var/www/html $ ls /etc/lighttpd/conf-enabled
07-mod_setenv.conf  88-dump1090-fa-statcache.conf  89-dump1090-fa.conf  95-tar1090-otherport.conf
47-stat-cache.conf  88-graphs1090.conf             89-skyaware978.conf
50-piaware.conf     88-tar1090.conf                89-skyaware.conf
pi@c5660:/var/www/html $ grep mod_setenv /etc/lighttpd/ -rnT
/etc/lighttpd/conf-available/07-mod_setenv.conf: 1:     server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/89-skyaware.conf:  44:     #server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/89-skyaware978.conf: 24:   #server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/89-dump1090-fa.conf:  34:  #server.modules += ( "mod_setenv" )
pi@c5660:/var/www/html $

Non working unit has fewer entries in ls/etc/lighttpd/conf-enabled

May 31 09:23:20 c16494 systemd[1]: Stopping Lighttpd Daemon...
May 31 09:23:20 c16494 systemd[1]: lighttpd.service: Succeeded.
May 31 09:23:20 c16494 systemd[1]: Stopped Lighttpd Daemon.
May 31 09:23:20 c16494 systemd[1]: Starting Lighttpd Daemon...
May 31 09:23:21 c16494 systemd[1]: Started Lighttpd Daemon.
pi@c16494:/var/www/html $ ls /etc/lighttpd/conf-enabled
07-mod_setenv.conf  88-graphs1090.conf  89-skyaware978.conf  95-tar1090-otherport.conf
47-stat-cache.conf  88-tar1090.conf     89-skyaware.conf
pi@c16494:/var/www/html $ grep mod_setenv /etc/lighttpd/ -rnT
/etc/lighttpd/conf-available/89-skyaware978.conf: 24:   #server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/89-skyaware.conf:  44:     #server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/07-mod_setenv.conf: 1:     server.modules += ( "mod_setenv" )
/etc/lighttpd/conf-available/89-dump1090-fa.conf:  34:  #server.modules += ( "mod_setenv" )
/etc/lighttpd/external.conf:  7:                "mod_setenv" ,
pi@c16494:/var/www/html $


sudo apt install piaware-web

Just do it correctly? :slight_smile:

1 Like

still the same

pi@c16494:/var/www/html $ sudo apt install piaware-web
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  piaware-web
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.2 kB of archives.
After this operation, 355 kB of additional disk space will be used.
Get:1 http://flightaware.com/adsb/piaware/files/packages stretch/piaware armhf piaware-web all 5.0~bpo9+1 [81.2 kB]
Fetched 81.2 kB in 0s (235 kB/s)
Selecting previously unselected package piaware-web.
(Reading database ... 54705 files and directories currently installed.)
Preparing to unpack .../piaware-web_5.0~bpo9+1_all.deb ...
Unpacking piaware-web (5.0~bpo9+1) ...
Setting up piaware-web (5.0~bpo9+1) ...
Restarting lighttpd..
pi@c16494:/var/www/html $

That sounds like pihole, not sure if it can work.

ls /etc/lighttpd/conf-available
ls /etc/lighttpd/conf-enabled

Maybe it needs enabling the lighttpd module for some reason …

not using pihole but tried following a pihole thread that seemed to be similar

pi@c16494:/var/www/html $ ls /etc/lighttpd/conf-available
05-auth.conf         10-flv-streaming.conf  10-status.conf                 88-skyaware978-statcache.conf
07-mod_setenv.conf   10-no-www.conf         10-userdir.conf                88-tar1090.conf
10-accesslog.conf    10-proxy.conf          10-usertrack.conf              89-dump1090-fa.conf
10-cgi.conf          10-rewrite.conf        11-extforward.conf             89-skyaware978.conf
10-dir-listing.conf  10-rrdtool.conf        15-fastcgi-php.conf            89-skyaware.conf
10-evasive.conf      10-simple-vhost.conf   47-stat-cache.conf             90-debian-doc.conf
10-evhost.conf       10-sockproxy.conf      50-piaware.conf                95-tar1090-otherport.conf
10-expire.conf       10-ssi.conf            88-dump1090-fa-statcache.conf  99-unconfigured.conf
10-fastcgi.conf      10-ssl.conf            88-graphs1090.conf             README
pi@c16494:/var/www/html $ ls /etc/lighttpd/conf-enabled
07-mod_setenv.conf  88-graphs1090.conf  89-skyaware978.conf  95-tar1090-otherport.conf
47-stat-cache.conf  88-tar1090.conf     89-skyaware.conf
pi@c16494:/var/www/html $

from the pi with working home page 
pi@c5660:/var/www/html $ ls /etc/lighttpd/conf-enabled
07-mod_setenv.conf  88-dump1090-fa-statcache.conf  89-dump1090-fa.conf  95-tar1090-otherport.conf
47-stat-cache.conf  88-graphs1090.conf             89-skyaware978.conf
50-piaware.conf     88-tar1090.conf                89-skyaware.conf


sudo lighty-enable-mod piaware
sudo systemctl restart lighttpd

All the messing with /var/www/html was not very useful by the way :wink:

1 Like

That was the magic solution. Thank you!
so that’s how you add to

ls /etc/lighttpd/conf-enabled
07-mod_setenv.conf  50-piaware.conf     88-tar1090.conf      89-skyaware.conf
47-stat-cache.conf  88-graphs1090.conf  89-skyaware978.conf  95-tar1090-otherport.conf

What is a better way? Would it involve comparing installed packages?

You would check the lighttpd configuration things and check what provides that / alias.
The configuration file is something you could have even copied probably (and the folder of html/css it points to, it doesn’t use /var/www/html)
But ideally you just know the package name or ask for it.

The package should normally enable its lighttpd configuration on install … apparently that doesn’t always happen.

For anyone else trying to install … the FA status page in the webroot:

sudo apt install piaware-web
sudo lighty-enable-mod piaware
sudo systemctl restart lighttpd
1 Like

The first command was enough for another pi that would give 403 Unauthorized for the webroot

sudo apt install piaware-web

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.