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.
Is there a way you can package up applications together this way without having to install libraries and applications separately. I don't mind having to create separate packages for different versions of Linux.
Edit: Just to clarify, I probably overcomplicated this question quite severely. Essentially what I was meant to ask if whether or not there is a standalone http server out there with built in PHP support. Apologies for the confusion.