I needed a way to call the colossuscontrol.py script from a php script. The script docommand.php allows you to call colossus control and pass command line options to it as a url.
This script uses PHP’s exec and system functions to run the colossuscontrol.py script. Certain aspects of the colossus control script require it to be run as root. In order to function properly, Apache must have root privileges. This creates MAJOR security holes. Our aquarium is not publicly accessible from the internet, otherwise we would not have done it. WE DO NOT ADVISE RUNNING APACHE AS ROOT! DO SO AT YOUR OWN RISK!