Can you create a self contained application bundle (similar to a lamp) on Linux?

view full story

http://serverfault.com – I'm not entirely sure whether or not this is actually possible, but essentially I'm looking for advice on how to go about doing the following: I run a server monitoring service and at the minute this operates on a push mechanism - each server runs a cronjob every minute or so that posts relevant data to our API server which then processes the data. What I'm looking at moving towards is a small self contained application that will run on each server and listen on a certain port (e.g 8282). Ideally I'd like an Apache instance with PHP along with a few custom PHP scripts in the document root. (HowTos)