Apache instead of asterisk web server

I currently have a nice system up and running but I want to do some work on provisioning. I’m planning to automatically provision phones based on model using PHP or Python but for that to work I need to have my files run from apache. Has anyone done this before?