I've added the xampp stack for mac osx to my apple TV which is also running aTV Flash. This works well and is an easy way to include a webserver/database on the Apple TV. The only missing component is the sendmail utility.
If you examine the file system you can see that at one time the Apple TV image had postfix running because the postfix queue folders still exist. Postfix normally replaces sendmail and would be a great resource to have along with the XAMPP stack.
Does anyone know about the status of sendmail on the Apple TV?