I am using Ubuntu server 12.04 to run Apache2 web server.
I am hosting several webpages, and most are working fine.
One page is running a cgi script which mostly works (I have the python code working outside Apache building the html code nicely.)
However, I am calling a home automation program (heyu) and it is returning different answers then when I run it in my user account.
Is there a way I can...
1 call the heyu program from my python script as a specific user, (me) and leave the rest of the python code and cgi code alone?
2, configure apache2 to run the cgi code, as a whole, as me? I would like to leave all the other pages unchanged. Maybe using the sites_available part.
3, at least determine which user is running the cgi code so maybe I can get heyu to be OK with that user.
Thanks, Mark.