"Hard to speculate what 'simply does not run means'" - What that means is 
that the php code will not execute within the html file.   So, I am not 
getting the desired result on the webpage.  In other words, it just ignores 
the code.

Steve - your suggestion seemed to have worked (almost).   I did what you 
suggested, and the php code does execute, but I have run into a permissions 
problem, so I'm curious how you handled it.

All my .php files / .html files come out as the root user, and as a result 
the website will not display at all.  I know it works, because if I change 
the the users of the index.php file manually (i.e. chown weewx:weewx 
index.php), then the webpage works fine.

I tried using...

su python -u weewx -g weewx /usr/local/src/Weewx/bin/weewxd 
/usr/local/src/Weewx/weewx.conf > /var/run/weewx/weewx.pid

the /var/run/weewx is owned by user "weewx".

Basically, I have assigned ownership of ALL users and ALL groups to weewx, 
however when the program runs the .php and .html files still get outputted 
as root.

So, I'm curious as to what you did to get around that.

Thank you.

Reply via email to