Question: can php run on tomcat?
Answer: No - Tomcat is an application server based on Java, which is a different technology compared to PHP. Tomcat can run native Java code through war files, JSPs, JSFs. It doesn't have the capability to process PHP code as PHP is non JDK compliant unlike Java. Hence, you can't run PHP in tomcat.