in reply to Moving A Web Application From Hacky To ... Less Hacky

Ok, security things to consider:
There's a lot of work you can do to make sure a system is secure (physical access, open telnet ports, default passwords etc etc are all potential problems and security holes), but the above should give you some assistance.