As my previous post mentioned I’m running HA on RPi3 in a virtual environment. I’ve installed php modules for Apache and Curl for php. I’ve tried a lot of different things to get php scripts to execute from the HA UI / frontend. All it will ever do is download the php files. There’s a lot of stuff on google about this problem and I tried everything I could find but with no success.
Others may be finding the same problem, so eventually my solution was to tweak your php scripts a little bit to enable them to execute from the command line. Then set up shell command switch in HA to invoke them. It works. Again thanks for you help on this.
An update on this issue. The reason for php program downloading might be related to the configuration of MIME types (/etc/mime.conf). In my raspberry Pi system, the following lines are commented out - for whatever reason. Anybody know why or whether I should include all the lines?
#application/x-httpd-php phtml pht php