I have some embedded php script in my "index" file, so I changed it from
index.html.tmpl to index.php.tmpl.
That seems to work fine, but the problem is when Weewx produces the files
(for the webpage), it makes the owner/group as root/root.
The webpage will not display if the index's file owner is root. I tested
by manually changing the owner to "weewx" (a user I created) and the
webpages displays correctly.
I run the software by using the "weewx.bsd" script (included with the weewx
installation).
This is the script that launches weewx (that I'm using)
sudo python ${WEEWX_BIN} ${WEEWX_CFG} --daemon &
echo $! > ${PIDFILE}
I tried.
sudo -u weewx python ${WEEWX_BIN} ${WEEWX_CFG} --daemon &
echo $!> ${PIDFILE]
However I get a an error since /var/run are root files only, and I'm trying
to run weewx as user weewx.
In short, I'm thinking if I run weewx as user - weewx then, the files it
produces (i.e. index.php, year.php, etc) will be under the user weewx as
well.
Any suggestions 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].
For more options, visit https://groups.google.com/d/optout.