Dan - did you get anywhere on this ? A pip installation does not create any users, it runs as the user you installed weewx under, in your case I'm guessing it is user 'house'
Your weewx user needs to have the permission to write the public_html files, and the apache user needs to have permission to read those files. It takes a little one-time setup to make this happen. The wiki page is getting very dated and to me is a bit too complicated so I thought I'd mention how I do it here. I run nginx but the same method will work for any webserver. I use the Strategy 3 from the wiki, just in the opposite direction. So to do it that way: - sudo mkdir /var/www/html/weewx - sudo chown house:house /var/www/html/weewx - ln -s /var/www/html/weewx /home/house/weewx-data/public_html You'll likely need to rename the /home/house/weewx-data/public_html directory before creating the symlink. If you want to save any pre-existing files there copy them to the newly created /var/www/html/weewx tree and make sure you set the ownership to house:house so weewx can write there. It should be pretty quick to do. On Friday, May 8, 2026 at 12:39:29 PM UTC-7 Vince Skahan wrote: > Try looking at the wiki > > > https://github.com/weewx/weewx/wiki/Configure-a-web-server-(Apache,-NGINX-or-lighttpd) > > On Friday, May 8, 2026 at 12:30:12 PM UTC-7 Dan Hinckley wrote: > >> Set up a new venv install with WeeWx 5.3.1 >> Ubuntu >> NUC5.x >> Installed with PIP >> >> Log at startup: >> weewxd: Initializing weewxd version 5.3.1 >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Command line: >> /home/house/weewx-venv/bin/weewxd >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Using Python: 3.10.12 >> (main, Mar 3 2026, 11:56:32) [GCC 11.4.0] >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Located at: >> /home/house/weewx-venv/bin/python3 >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Platform: >> Linux-6.8.0-111-generic-x86_64-with-glibc2.35 >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Locale: 'en_US.UTF-8' >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Entry path: >> /home/house/weewx-venv/bin/weewxd >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: WEEWX_ROOT: >> /home/house/weewx-data >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Config file: >> /home/house/weewx-data/weewx.conf >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: User module: >> /home/house/weewx-data/bin/user >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Debug: 1 >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: User: house >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Group: house >> May 8 15:13:35 nuc62 weewxd[51956]: INFO weewxd: Groups: adm cdrom sudo >> dip plugdev lpadmin lxd sambashare house >> >> It did not create a weewx user, and Apache2 is installed as root:root as >> it required sudo to install. >> >> Added 'house' to the www-data group, no joy. >> >> All runs well except I cannot figure out how to allow access to >> /var/www/html. I know this is a classic issue but google has not directed >> me so far. >> >> Pointers would be appreciated. > > -- 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/56f79d68-8cd8-4b5c-88d8-2c651b28f1dan%40googlegroups.com.
