How to configure PHP using Tomcat

I have successfully installed tomcat, but if I want to use some php code. So where should I put this php code in my tomcat directory and how to configure php with tomcat. Any suggestions or links would be appreciated.

+6
source share
2 answers

The PHP / Java bridge mentioned in another answer is one option. Another will use the PHP runtime built into Java called Quercus

+4
source

Tomcat is the first Java Servlet Container - it was not created to run PHP natively. However, there are adapters that allow you to run PHP on Tomcat, for example.

If you just need to run PHP, you might be better off using LAMP as a setting.

+4
source

Source: https://habr.com/ru/post/891504/


All Articles