PHP in GlassFish

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.

Comments:

How about Ruby on Glassfish?

Posted by Roman Strobl on February 19, 2006 at 08:19 PM PST #

Didn't the Caucho guys do a native Java compiler and interpreter for PHP?

Posted by Mikael Gueck on February 19, 2006 at 09:21 PM PST #

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.

Posted by Migs on February 19, 2006 at 09:47 PM PST #

Found it, http://www.caucho.com/resin-3.0/php/tutorial/module/index.xtp

Posted by Mikael Gueck on February 19, 2006 at 09:54 PM PST #

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 ;-)

Posted by bjb on February 19, 2006 at 10:35 PM PST #

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

Posted by Eduardo Pelegri-Llopart on February 20, 2006 at 03:39 AM PST #

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

Posted by Eduardo Pelegri-Llopart on February 20, 2006 at 03:44 AM PST #

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

Posted by Eduardo Pelegri-Llopart on February 20, 2006 at 03:47 AM PST #

Post a Comment:
Comments are closed for this entry.