X

An Oracle blog about Java Technology

PHP in GlassFish

Guest Author



PHP Logo

The
GlassFish Forum has a thread on
Running PHP on GlassFish.
The gist of the thread seems to be that this works.
The solution presented by
bjb
uses recipes for Tomcat given at
The Tomcat Wiki
and at

Simple Thoughts
.
Bjb's last message adds some clarifications.

I would love to have additional confirmations,
a full, self-standing recipe,
and more information on how well does it work; if you do, please post.


Join the discussion

Comments ( 8 )
  • Roman Strobl Monday, February 20, 2006
    How about Ruby on Glassfish?
  • Mikael Gueck Monday, February 20, 2006
    Didn't the Caucho guys do a native Java compiler and interpreter for PHP?
  • Migs Monday, February 20, 2006
    The blog comments make it sounds like a mess. It looks like a recipe for JVM instability. I think using AJP in front of Glassfish/Tomcat and running PHP there is simpler. The PHP code doesn't benefit from JVM integration, anyway.
  • Mikael Gueck Monday, February 20, 2006
    Found it, http://www.caucho.com/resin-3.0/php/tutorial/module/index.xtp
  • bjb Monday, February 20, 2006
    Talking about Ruby, I don't know much of this, but google land me on http://rjni.rubyforge.org/ which could be a good start to provde the same kind of early integration.
    Maybe a better (more stable?) one would be done using JRuby http://jruby.sourceforge.net/ but I compatibility between latest Ruby and JRuby is unclear for me at this time.
    What was a nice point for me on the PHP integration I pushed as an answer on the forum was that code was available from PHP distribution site ;-)
  • Eduardo Pelegri-Llopart Monday, February 20, 2006
    Hi Migs. If you have an alternate recipe, send it and I'll collect it and make it available for the community to try.
    Thanks, - eduard/o
  • Eduardo Pelegri-Llopart Monday, February 20, 2006
    re: Ruby/JRuby
    I think we should explore both approaches. JRuby seems an interesting but probably longer-term approach.
    If there was interest we could explore some ad-hoc group about GF & Scripting languages.
    - eduard/o
  • Eduardo Pelegri-Llopart Monday, February 20, 2006
    Thanks for the link to the Quercus/PHP work. One of the hard topics about PHP is that a number of the modules are not thread-safe; another are non-native modules. A practical approach needs to work within those constraints.
    - eduard/o
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.