Joshua Slive wrote:
On 8/15/06, Ryan McDonald <[EMAIL PROTECTED]> wrote:
Right now using Apache 2.0.54 and mod_jk to connect with Tomcat 5.0.28.

We have a requirement that the pages served by tomcat be php, these
pages should then be handled by mod_php then sent back to the
client.  Is this possible? If so what should I be using. I've been
playing around with no luck so far.

Any help is appreciated,

This won't work with the standard php installation, because it
implements php as an apache handler, not a filter.  There is a
filter-based sapi module included with php, but I have no idea how
stable it is and I don't even know how to activate it.  A php forum
would probably have more information.

And by the way, you do understand how insane an idea that is ;-)?
Tomcat and php are complex enough on their own.  Combining them seems
like an absolute nightmare to me.  And probably a source for obscure
security problems as well.

I concur.

Both JSP and PHP are dynamic page languages, using one to generate a parsable page in the another would be next to impossible to debug, let alone any other issues.

You should be able to achieve your actual* requirement using one language only.

Or do you really mean that the page URLs should end in PHP?
If you do, then just map the PHP extension to Tomcat in the same way as you do with JSP, then tweak Tomcat to parse PHP files.

(Add "php" to "jsp,jspx" in the JSP servlet in tomcat/conf/web.xml)


*Meaning the function that page performs.


Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to