I have a website using PhP and Apache Webserver (e.g. mod_php). I need to use Tomcat for another purpose. Rather than just add Tomcat to the current mix, I'm wondering if I should eliminate Apache Webserver and simply use Tomcat to serve static webpages assuming I can get PhP onto Tomcat somehow.
My PhP usage on the website is very very small.
Can PhP be installed into Tomcat such that Apache Webserver can be removed? If so, if this a good practical solution? Or, will performance across the board suffer in Tomcat by doing so? Am I splitting hairs by worrying about trying to simplify the number of software pieces installed, or would it be worth it to do so? Looking for some conventional wisdom.
If PhP is added to Tomcat, would I need to reach into the PhP code and modify anything there to get things working now that Apache Webserver is out of the picture, or would it be plug-and-play (no modification required)?