I ran through the installation process as outlined in the README. First, a fresh installation of weewx... I used apache2 (you said it also failed using apache), the latest weewx pip installation, and an updated debian based raspberry pi 5.
Copied the supplied weewx-data/util/apache/weewx.conf over to the /etc/apache2/conf-available/ directory, changed the 2 paths within that file to reflect the changed home directory, enabled the conf and restarted apache2. After the permission problem noted by vince that gave me a working weewx (simulator) , it displayed the html data / images. That permission change was to the users home directory, and it was set to 0755 - the weewx-venv install of weewx set the correct permissions for the main weewx-data directories. CAVEAT: That's done with the weewx default installation of public_html being located in the users home directory. We could have a long, possibly animated discussion about the merits of that but for these purposes I'm going with the default installation of HTML_ROOT. ( If user www-data is added to the users group then 0710 is sufficient. YMMV.) With that done, I installed wxobs as per the README, noting points 6. and 4. as required (that's the modules and test.php script) and restarted the webserver. That resulted in the usual failure (red text) on viewing the wxobs/index.php page from the browser. By then following the procedure outlined there, ie:- creating /usr/share/php and cp -p the wxobs_weewx.inc file to that location it was ready for a retest. (those points are also noted in the README). Reloaded the browser and - viola - the page displays the database contents for the current date, and the calendar works to change it.. Cheers Glenn Various WeeWx addons at https://github.com/glennmckechnie On Tue, 17 Jun 2025 at 09:53, Glenn McKechnie <[email protected]> wrote: > > > On Mon, 16 Jun 2025 at 18:57, 'lucien mornet' via weewx-user < > [email protected]> wrote: > >> Hello, If the permissions on /home weren't correct, >> the Belchertown and Seasons skins wouldn't work? >> > > And by that you mean they are. OK. But Seasons/wxobs isn't... > > >> What information would you need? >> > > The results from the test.php file that I outlined previously, that file > placed within your wxobs directory then accessed by your web browser. That > will show whether you have a working php installation (critical) , and if > the wxobs directory is indeed available (readable). It will also indicate > if SQLite is installed - with some interpretation required. > > You've supplied the error messages that weewx throws but have not > mentioned whether you get the wxobs page displaying in the browser. I'd > expect it to at least display the built in error page that complains about > no database being available (a message that is contained within that > index.php page). I'm guessing - and it is a guess as I have nothing else to > work from yet - that it's failing before the page is generated. > > >> >> Le jeudi 12 juin 2025 à 03:24:59 UTC+2, vince a écrit : >> >>> On a pi using a venv, the usual error is that $HOME is mode 700 and the >>> webserver cannot read through the top of $HOME down into the www-data files >>> therein. So for this thread I'd suggest Lucien check his permissions on >>> $HOME and which groups user 'lucien' and whatever user the webserver runs >>> as (www-data usually). >>> >>> My guess is that if you run the following commands your output will look >>> something like: >>> >>> $ ls -al /home >>> total 20 >>> drwxr-xr-x 5 root root 4096 May 13 22:57 . >>> drwxr-xr-x 18 root root 4096 Mar 15 2024 .. >>> drwx------ 10 lucien lucien 4096 Dec 12 11:54 lucien >>> >>> $ groups lucien >>> lucien: lucien users >>> >>> $ groups www-data >>> www-data: www-data >>> >>> (so by default, the webserver cannot read files under the other >>> account's $HOME) >>> >>> At a minimum, it might be worth a quick check to see more info on the >>> configuration. Lucien's problem descriptions are a bit minimal.... >>> >>> > It would still be helpful to know exactly what your results are to Vinces > observations. It is sound advice and helps clarify what your installation > is. > > What are your home permissions? > What is your output for groups lucien, and groups www-data? > > Additionally, permissions of /home/lucien/weewx-data and in particular > /home/lucien/weewx-data/archive/ and the files within. > If the webserver cannot read /home/lucien/weewx-data/archive/weewx.sdb > then it will never work. > And just to be redundant, and remove all doubt, your permissions for > /home/lucien/weewx-data/public_html > > If you don't want to post all that info to this group, then my email box > is still vacant; and I'd still like to see those files I asked for > previously. > You can also send the output (saved html) of the test.php file as well. > > FWIW. I can't duplicate this error here - yet. So more clues are needed. > > You supplied the error log for lighttpd. What is the error message that > apache2 throws to its error.log. Send that as well. > > Cheers > Glenn > > Various WeeWx addons at > https://github.com/glennmckechnie > > > -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-user/CAAraAzj987v4aPkafPZfOmjXqwqomxjdQ2%2BgAS%3DyZ0nJ5jx72Q%40mail.gmail.com.
