I'm working on this project: viewtopic.php?f=4&t=21403 and I'm creating a setup page for the I/Os which needs to forward the configuration via the Raspberry Pi UART to the extension board. I have managed to create a Python or Bash script that handles that, however I need to be able create the file and trigger the script form the web.
Imagine this form created in PHP: Ideally I like to have this page inside domoticz/www folder without the need to install Apache.
I have tried installing php-cgi and adding the config to the domoticz.sh start:
Code: Select all
DAEMON_ARGS="$DAEMON_ARGS -php_cgi_path /usr/bin/php-cgi7.0"
Code: Select all
DAEMON_ARGS="$DAEMON_ARGS -php_cgi_path /usr/bin/php-cgi"
Is it really my only option to install Apache?
And if Apache, then how do I block the page to load if you are not logged into Domoticz?