I want to run PHP script on Jakrta-Tomcat.Is this possible?What changes I will have to make in web.xml if it is possible.

    You likely need to run Tomcat under Apache to get it to live with PHP alongside it on the same server. That said, I've never had the time or patience to make apache and tomcat get along, so I just run tomcat on port 8080 or something like that.

      5 months later

      I'm also trying to run PHP scripts on Tomcat. How do I configure Tomcat to do that?

      Thanks in advance!

        6 days later

        If I'm not mistaken you should compile PHP as a servlet...
        I'm trying to do that right now so I can use PHP inside Cocoon2..
        In php compilation, use ./configure --with-java --with servlet.
        For this to work, your JAVA_HOME and CLASSPATH should be set..

        Check PHP's source code under sapi/servlet/readme for more info

          2 months later

          I'm also trying to get this to work. Adding mime-type mappings in the web.xml file did not work. If anyone gets php to work inside tomcat (using apache and mod webapp), please let me know (cohen@ylearn.com), as I'd be a very very happy camper.
          Thanks!

            2 months later

            Where I can get the files for using some php with Tomcat.

            anyone have a url? ans infos to install it?

            please send it to me to (d3adman@hotmail.com)

            Thank you so much

              Write a Reply...