PHP shell_exec not executing serial commands.

view story

http://ubuntuforums.org – Hi all, I have an ongoing development of a home automation system that I've been building/amending/adding to for years. Now I want to be able to control all the devices in my house via an internal web page. I've set up a RPi box and installed lamp - I now have a prototype web page (www.cidb.co.uk/homecontrol if anyone is interested), when I click any of the buttons it executes a PHP page via ajax and returns the results. I have a set of scripts that are as such: switch_1_on.sh switch_1_off.sh etc... if I'm at the command prompt and I type ./switch_1_on.sh it executes the (Hardware)