Apache2 webserver

96 views
Skip to first unread message

Samuel Kirby-Bray

unread,
Nov 18, 2021, 4:34:22 AM11/18/21
to weewx-user
Hello,

Just installed weewx 4.5.1 on Rpi with bullseye and working fine - I can see the reports. I installed Apache web-server following the instructions and can now see its landing page. However the reports don't seem to be saving to the correct folder: file:///var/weewx/reports/index.html. Whereas the apache index page is here: /var/www/html

I can link the reports on the browser but would like to setup the website for external viewing. Its worked fine before, so not sure what i'm doing wrong. Do I need to configure something in the config file to sort this? Apologies for the novice Q!

Any ideas?

Rainer Lang

unread,
Nov 18, 2021, 4:42:04 AM11/18/21
to weewx...@googlegroups.com, Samuel Kirby-Bray
Did you create a symbolic link redirecting the Apache default web folder to yours ?
And did you allow Apache to access your report folder ?
  1. Create symbolic link to point webserver to the reports
    1. sudo ln -s /var/weewx/reports /var/www/html/weewx
  2. Give the web server the ability to read from the directory
    1. sudo chmod -R 755 /var/www/html/weewx
Did you define the HTML_ROOT for your reports properly in weewx.conf in the [StdReport] section ?
HTML_ROOT = /var/weewx/reports
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1157f3cb-05af-4200-b57c-75ed0bd78c64n%40googlegroups.com.s ?


vince

unread,
Nov 18, 2021, 12:50:49 PM11/18/21
to weewx-user
This one is in the FAQ -  (link) which points you to the wiki (link)
Reply all
Reply to author
Forward
Message has been deleted
0 new messages