PHP from Tomcat , some news from JFC :)
Hi to all, Mladen discussed about using PHP from Tomcat. Jean-Frederic Clere make some tests during his vacation and send me the following mail to be forwarded to the list : Good news, tomcat+php it's easy, php allready have support for. I make a simple try and here's the resulting 'readme' : Using php in Tomcat5: Easy a servlet is available in php (I have tried with php-4.3.5) configure the php with: ./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME a jarfile and dynamic library are produced: - sapi/servlet/phpsrvlt.jar - libs/libphp4.so Copy jarfile and arrange web.xml: cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping in the $TOMCAT_HOME/conf/web.xml Start the Tomcat: LD_LIBRARY_PATH=$PHP_HOME/libs export LD_LIBRARY_PATH $TOMCAT_HOME/bin/catalina.sh start Try it: Create a file named ./webapps/ROOT/test.php containing: +++ +++ Call it: http://localhost:8080/test.php Patch for the configure of php: --- configure.org 2004-04-07 11:20:24.0 +0200 +++ configure 2004-04-07 11:22:50.0 +0200 if test "$withval" = "yes"; then SERVLET_CLASSPATH=. else + if test -f $withval/common/lib/servlet-api.jar; then +SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar + fi + if test -f $withval/lib/servlet.jar; then SERVLET_CLASSPATH=$withval/lib/servlet.jar fi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP from Tomcat , some news from JFC :)
Henri Gomez wrote: Hi to all, Mladen discussed about using PHP from Tomcat. Jean-Frederic Clere make some tests during his vacation and send me the following mail to be forwarded to the list : Good news, tomcat+php it's easy, php allready have support for. They don't advetise a lot ;) Is the performance that bad ? :D Rémy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PHP from Tomcat , some news from JFC :)
Hi, Ooh, this is great. I'll put it in the wiki for now until we (or users) further test it out, then maybe we'll move it to a more permanent doc. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Henri Gomez [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 07, 2004 11:00 AM >To: Tomcat Developers List >Subject: PHP from Tomcat , some news from JFC :) > >Hi to all, > >Mladen discussed about using PHP from Tomcat. > >Jean-Frederic Clere make some tests during his vacation >and send me the following mail to be forwarded to the list : > > > >Good news, tomcat+php it's easy, php allready have support for. >I make a simple try and here's the resulting 'readme' : > >Using php in Tomcat5: Easy a servlet is available in php (I have tried with >php-4.3.5) > >configure the php with: >./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME >a jarfile and dynamic library are produced: >- sapi/servlet/phpsrvlt.jar >- libs/libphp4.so > >Copy jarfile and arrange web.xml: >cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib >copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping in the >$TOMCAT_HOME/conf/web.xml > >Start the Tomcat: >LD_LIBRARY_PATH=$PHP_HOME/libs >export LD_LIBRARY_PATH >$TOMCAT_HOME/bin/catalina.sh start > >Try it: >Create a file named ./webapps/ROOT/test.php containing: >+++ > >+++ >Call it: >http://localhost:8080/test.php > >Patch for the configure of php: > >--- configure.org 2004-04-07 11:20:24.0 +0200 >+++ configure 2004-04-07 11:22:50.0 +0200 > if test "$withval" = "yes"; then >SERVLET_CLASSPATH=. > else >+ if test -f $withval/common/lib/servlet-api.jar; then >+SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar >+ fi >+ >if test -f $withval/lib/servlet.jar; then > SERVLET_CLASSPATH=$withval/lib/servlet.jar > fi > > > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP from Tomcat , some news from JFC :)
Nice :-) Did you try it ? I'm curious, could you run a quick helo world benchmark ( helo.jsp / help.php ) ? The big question is the level of integration - i.e. if you can call java objects from php or use some of the nice PHP features from java. Costin Henri Gomez wrote: Hi to all, Mladen discussed about using PHP from Tomcat. Jean-Frederic Clere make some tests during his vacation and send me the following mail to be forwarded to the list : Good news, tomcat+php it's easy, php allready have support for. I make a simple try and here's the resulting 'readme' : Using php in Tomcat5: Easy a servlet is available in php (I have tried with php-4.3.5) configure the php with: ./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME a jarfile and dynamic library are produced: - sapi/servlet/phpsrvlt.jar - libs/libphp4.so Copy jarfile and arrange web.xml: cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping in the $TOMCAT_HOME/conf/web.xml Start the Tomcat: LD_LIBRARY_PATH=$PHP_HOME/libs export LD_LIBRARY_PATH $TOMCAT_HOME/bin/catalina.sh start Try it: Create a file named ./webapps/ROOT/test.php containing: +++ +++ Call it: http://localhost:8080/test.php Patch for the configure of php: --- configure.org 2004-04-07 11:20:24.0 +0200 +++ configure 2004-04-07 11:22:50.0 +0200 if test "$withval" = "yes"; then SERVLET_CLASSPATH=. else + if test -f $withval/common/lib/servlet-api.jar; then +SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar + fi + if test -f $withval/lib/servlet.jar; then SERVLET_CLASSPATH=$withval/lib/servlet.jar fi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP from Tomcat , some news from JFC :)
Costin Manolache wrote: Nice :-) Did you try it ? I'm curious, could you run a quick helo world benchmark ( helo.jsp / help.php ) ? The big question is the level of integration - i.e. if you can call java objects from php or use some of the nice PHP features from java. I just forwarded the Jean-Frederic mail to the list, but I'm sure he'll be happy to reply to these questions :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PHP from Tomcat , some news from JFC :)
Hi, I posted the wiki: http://wiki.apache.org/jakarta-tomcat/UsingPhp (reformatted for easier reading and following by less experienced users). Yoav Shapira Millennium Research Informatics >-Original Message- >From: Henri Gomez [mailto:[EMAIL PROTECTED] >Sent: Wednesday, April 07, 2004 11:37 AM >To: Tomcat Developers List >Subject: Re: PHP from Tomcat , some news from JFC :) > >Costin Manolache wrote: > >> Nice :-) >> >> Did you try it ? I'm curious, could you run a quick helo world benchmark >> ( helo.jsp / help.php ) ? >> >> The big question is the level of integration - i.e. if you can call java >> objects from php or use some of the nice PHP features from java. >> >> >I just forwarded the Jean-Frederic mail to the list, but >I'm sure he'll be happy to reply to these questions :) > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP from Tomcat , some news from JFC :)
From what I hear, the current PHPServlet is okay for simple things, but the integration you're looking for is not quite there yet. There's some work going on to let Java and scripting languages act more friendly with each other. For those who are interested, check out JSR-223, Scripting Pages in Java Web Applications. http://jcp.org/en/jsr/detail?id=223 This JSR focuses on tight integration between PHP (or other scripting languages) and Java webapps. Zend is an active participant on the expert group and is interested in such integration. I believe they're building their RI on top of Tomcat. Cool stuff! --- Mark Roth, Java Software JSP 2.0 Specification Lead Sun Microsystems, Inc. Costin Manolache wrote: Nice :-) Did you try it ? I'm curious, could you run a quick helo world benchmark ( helo.jsp / help.php ) ? The big question is the level of integration - i.e. if you can call java objects from php or use some of the nice PHP features from java. Costin Henri Gomez wrote: Hi to all, Mladen discussed about using PHP from Tomcat. Jean-Frederic Clere make some tests during his vacation and send me the following mail to be forwarded to the list : Good news, tomcat+php it's easy, php allready have support for. I make a simple try and here's the resulting 'readme' : Using php in Tomcat5: Easy a servlet is available in php (I have tried with php-4.3.5) configure the php with: ./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME a jarfile and dynamic library are produced: - sapi/servlet/phpsrvlt.jar - libs/libphp4.so Copy jarfile and arrange web.xml: cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping in the $TOMCAT_HOME/conf/web.xml Start the Tomcat: LD_LIBRARY_PATH=$PHP_HOME/libs export LD_LIBRARY_PATH $TOMCAT_HOME/bin/catalina.sh start Try it: Create a file named ./webapps/ROOT/test.php containing: +++ +++ Call it: http://localhost:8080/test.php Patch for the configure of php: --- configure.org 2004-04-07 11:20:24.0 +0200 +++ configure 2004-04-07 11:22:50.0 +0200 if test "$withval" = "yes"; then SERVLET_CLASSPATH=. else + if test -f $withval/common/lib/servlet-api.jar; then +SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar + fi + if test -f $withval/lib/servlet.jar; then SERVLET_CLASSPATH=$withval/lib/servlet.jar fi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PHP from Tomcat , some news from JFC :)
> -Original Message- > From: Henri Gomez > > Mladen discussed about using PHP from Tomcat. > The point is better native integration, php support will be just an example of such integration. > Jean-Frederic Clere make some tests during his vacation and > send me the following mail to be forwarded to the list : > > > > Good news, tomcat+php it's easy, php allready have support for. This module is totally unusable although it was written by Sam Ruby :(. Also it doesn't support php5 and it's even removed from cvs. Here are some statemets from one of the leading php developers (Sebastian Bergman): http://www.zend.com/lists/php-dev/200308/msg00571.html > about two or three times a month I receive mails concering the Servlet > SAPI module of PHP 4. > > This module is not usable in production since it segfaults after the > first or second request. > > Are there any plans to rewrite this SAPI module for PHP 5? MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP from Tomcat , some news from JFC :)
Mark Roth wrote: From what I hear, the current PHPServlet is okay for simple things, but the integration you're looking for is not quite there yet. There's some work going on to let Java and scripting languages act more friendly with each other. For those who are interested, check out JSR-223, Scripting Pages in Java Web Applications. http://jcp.org/en/jsr/detail?id=223 This JSR focuses on tight integration between PHP (or other scripting languages) and Java webapps. Zend is an active participant on the expert group and is interested in such integration. I believe they're building their RI on top of Tomcat. Cool stuff! Yes, but it's actually the reverse of what I'm interested in :-) From what I've read the JSR is more about allowing scripting languages to access and use java objects. It may look cool - but there are already plenty of scripting languages targeting the JVM - jython, mozilla's javascript, bsh, etc. There are 2 great things about scripting languages, one is the simplicity of syntax and the ease of developing code. This is IMO covered well enough by the variants targeting the VM. ( I believe cocoon is using javascript already ). The other great thing about scripting languages is the large collection of existing extensions and scripts. To use Apache as example - having Apache call native java modules for auth is interesting, but using the existing collection of apache modules is IMO the real value :-). Apache is more than the HTTP stack ( and while we have a very good http implementation in tomcat, I'm not sure we can match the amount of testing and review and stability apache's got ). And Python/PHP/etc are more than a syntax to use in a page. Costin --- Mark Roth, Java Software JSP 2.0 Specification Lead Sun Microsystems, Inc. Costin Manolache wrote: Nice :-) Did you try it ? I'm curious, could you run a quick helo world benchmark ( helo.jsp / help.php ) ? The big question is the level of integration - i.e. if you can call java objects from php or use some of the nice PHP features from java. Costin Henri Gomez wrote: Hi to all, Mladen discussed about using PHP from Tomcat. Jean-Frederic Clere make some tests during his vacation and send me the following mail to be forwarded to the list : Good news, tomcat+php it's easy, php allready have support for. I make a simple try and here's the resulting 'readme' : Using php in Tomcat5: Easy a servlet is available in php (I have tried with php-4.3.5) configure the php with: ./configure --with-servlet=$TOMCAT_HOME --with-java=$JAVA_HOME a jarfile and dynamic library are produced: - sapi/servlet/phpsrvlt.jar - libs/libphp4.so Copy jarfile and arrange web.xml: cp $PHP_HOME/sapi/servlet/phpsrvlt.jar $TOMCAT_HOME/common/lib copy the $PHP_HOME/sapi/servlet/web.xml servlet and servlet-mapping in the $TOMCAT_HOME/conf/web.xml Start the Tomcat: LD_LIBRARY_PATH=$PHP_HOME/libs export LD_LIBRARY_PATH $TOMCAT_HOME/bin/catalina.sh start Try it: Create a file named ./webapps/ROOT/test.php containing: +++ +++ Call it: http://localhost:8080/test.php Patch for the configure of php: --- configure.org 2004-04-07 11:20:24.0 +0200 +++ configure 2004-04-07 11:22:50.0 +0200 if test "$withval" = "yes"; then SERVLET_CLASSPATH=. else + if test -f $withval/common/lib/servlet-api.jar; then +SERVLET_CLASSPATH=$withval/common/lib/servlet-api.jar + fi + if test -f $withval/lib/servlet.jar; then SERVLET_CLASSPATH=$withval/lib/servlet.jar fi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Autoreply: Re: PHP from Tomcat some news from JFC :)
Hello, Due to the increased volume of SPAM this mailbox has been closed. Please contact us via http://www.directxtras.com/ContactUS.asp We apology for the inconvenience. Best Regards, -- The DirectXtras Team - DirectXtras - Xtra Power for Director and Authorware - http://www.directxtras.com Sites with something to say - http://www.SpeaksForItself.com - Your message reads: Received: from mail.apache.org (unverified [208.185.179.12]) by mail2.intermedia.net (Rockliffe SMTPRA 4.5.6) with SMTP id <[EMAIL PROTECTED]> for <[EMAIL PROTECTED]>; Wed, 7 Apr 2004 23:12:28 -0700 Received: (qmail 59678 invoked by uid 500); 8 Apr 2004 06:12:09 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" <[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 59656 invoked from network); 8 Apr 2004 06:12:08 - Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 8 Apr 2004 06:12:08 - Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BBSlv-0005TK-00 for <[EMAIL PROTECTED]>; Thu, 08 Apr 2004 08:12:20 +0200 Received: from adsl-63-202-83-54.dsl.snfc21.pacbell.net ([63.202.83.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <[EMAIL PROTECTED]>; Thu, 08 Apr 2004 08:12:19 +0200 Received: from cmanolache by adsl-63-202-83-54.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <[EMAIL PROTECTED]>; Thu, 08 Apr 2004 08:12:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: [EMAIL PROTECTED] From: Costin Manolache <[EMAIL PROTECTED]> Subject: Re: PHP from Tomcat , some news from JFC :) Date: Wed, 07 Apr 2004 23:12:08 -0700 Lines: 133 Message-ID: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: [EMAIL PROTECTED] X-Gmane-NNTP-Posting-Host: adsl-63-202-83-54.dsl.snfc21.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en In-Reply-To: <[EMAIL PROTECTED]> Sender: news <[EMAIL PROTECTED]> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Mark Roth wrote: > From what I hear, the current PHPServlet is okay for simple things, but > the integration you're looking for is not quite there yet. > > There's some work going on to let Java and scripting languages act more > friendly with each other. For those who are interested, check out > JSR-223, Scripting Pages in Java Web Applications. > > http://jcp.org/en/jsr/detail?id=223 > > This JSR focuses on tight integration between PHP (or other scripting > languages) and Java webapps. Zend is an active participant on the > expert group and is interested in such integration. > > I believe they're building their RI on top of Tomcat. > > Cool stuff! Yes, but it's actually the reverse of what I'm interested in :-) From what I've read the JSR is more about allowing scripting languages to access and use java objects. It may look cool - but there are already plenty of scripting languages targeting the JVM - jython, mozilla's javascript, bsh, etc. There are 2 great things about scripting languages, one is the simplicity of syntax and the ease of developing code. This is IMO covered well enough by the variants targeting the VM. ( I believe cocoon is using javascript already ). The other great thing about scripting languages is the large collection of existing extensions and scripts. To use Apache as example - having Apache call native java modules for auth is interesting, but using the existing collection of apache modules is IMO the real value :-). Apache is more than the HTTP stack ( and while we have a very good http implementation in tomcat, I'm not sure we can match the amount of testing and review and stability apache's got ). And Python/PHP/etc are more than a syntax to use in a page. Costin > > --- > Mark Roth, Java Software > JSP 2.0 Specification Lead > Sun Microsystems, Inc. > > > Costin Manolache wrote: > >> Nice :-) >> >> Did you try it ? I'm curious, could you run a quic