To run this software we will use the low power BeagleBoard we have laying idly by. This board is running Ubuntu 11.04. First step is to install all necessary packets, simply do:
sudo apt-get install lighttpd php5-cgi mysql-client mysql-server php5-mysql php5-cli at
Now we need to enable php support in lighttpd. The module needed to do this is called fastcgi. After that a reload is required so the changes take effect.
sudo lighty-enable-mod fastcgi sudo lighty-enable-mod fastcgi-php sudo service lighttpd force-reload
To test if everything is working so far create a file /var/www/index.php with the following containing "<?php phpinfo(); ?>". Now browse to the device your installing on and you should see a overview page of your php installation.
Then download the zip file containing the latest stable release from the website. That's version 2.0.2 in our case. Unzip and copy the entire content to /var/www. The ownership of all files was set to www-data.
sudo chown www-data:www-data -R *
cp config_smaple config.php
date.timezone = Europe/Brussels /var/www/
grant all privileges on homeautomation.* to 'homeautomation'@'localhost' with grant option; create user 'homeautomation'@'localhost' identified by 'tellstick';
After a while of not getting the times events to work I noticed that the time setting on the BeagleBoard was of because it was set to the wrong timezone. If you need to update the timezone setting in Ubuntu on the command line use this command.