开发者

How can I configure PHP with my Tomcat

开发者 https://www.devze.com 2023-03-15 23:54 出处:网络
I have installed tomcat succesfully but if I want to use some php code. So where should I put this php code in my tomcat directory and开发者_JAVA百科 how I can configure php with tomcat. Any suggestio

I have installed tomcat succesfully but if I want to use some php code. So where should I put this php code in my tomcat directory and开发者_JAVA百科 how I can configure php with tomcat. Any suggestions or link will be appreciated..


PHP/Java bridge as mentioned in the other answer is one option. The other would be to use the PHP runtime built in Java called Quercus


Tomcat is a Java Servlet Container first - it wasn't built to run PHP natively. There are however adapters, which allow you to run PHP on Tomcat, e.g.

  • http://php-java-bridge.sourceforge.net/doc/tomcat6.php

If you only need to run PHP, you might be better off using a LAMP like setup.

0

精彩评论

暂无评论...
验证码 换一张
取 消