RE: Tomcat and PHP?

2005-05-18 Thread Fritz Schneider
Try this: http://tools.herberlin.de/phpservlet/index.shtml

Fritz

-Original Message-
From: Chris Holden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 18, 2005 3:52 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat and PHP?

Hi,

I was wondering if anyone knows if it's possible to configure Tomcat to run
PHP 5? I have Tomcat 5.5.9 installed and it's all running fine with my MySQL
etc, but I'd really like to be able to test just a few php pages without
having to install Apache to handle php seperately (everything else is JSP
and servlets). I have various extension modules in php (php_java.dll and jar
files and the like) and I have read the php documentation on their site
regarding java, but I'm unsure how to mesh the two without ruining my set
up.

If anyone has any foolproof instructions or has done this before I'd really
appreciate some tips/help!


Cheers,


Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and PHP?

2005-05-18 Thread Chris Holden
Hi,

I was wondering if anyone knows if it's possible to configure Tomcat to run PHP 
5? I have Tomcat 5.5.9 installed and it's all running fine with my MySQL etc, 
but I'd really like to be able to test just a few php pages without having to 
install Apache to handle php seperately (everything else is JSP and servlets). 
I have various extension modules in php (php_java.dll and jar files and the 
like) and I have read the php documentation on their site regarding java, but 
I'm unsure how to mesh the two without ruining my set up.

If anyone has any foolproof instructions or has done this before I'd really 
appreciate some tips/help!


Cheers,


Chris

RE: Tomcat and PHP

2004-07-16 Thread Patrick Willart
The WIKI page is nice and all, but is geared for compiling PHP yourself.

What I would like to know is how to set it up using a binary distribution.

I've tried fiddling around a little, and did get it to work, but it would
crash on me after every page request. It did get the PHP out put though

grts,

Patrick

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 9:26 AM
To: Tomcat Users List
Subject: Re: Tomcat and PHP


On Fri, Jul 16, 2004 at 11:15:58AM -0500, Ryan McCain wrote:
: I have PHP 3.x and Tomcat 4.x installed on a SLES box.  What do I need
: to configure in Tomcat so that it knows what to do w/ .php files?
: Tomcat is acting as the webserver and not apache.

These instructions imply PHP v4:

http://wiki.apache.org/jakarta-tomcat/UsingPhp
[1]

but it's worth a shot, as a quick glance didn't reveal anything
PHP4-specific.

-QM

[1] aka
"http://www.google.com/search?hl=en&ie=UTF-8&q=site%3Aapache.org+tomcat+php&;
btnG=Google+Search"

--

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
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: Tomcat and PHP

2004-07-16 Thread Tim Funk
http://marc.theaimsgroup.com/?l=tomcat-user&m=108481556529975&w=2
-Tim
Ryan McCain wrote:
I have PHP 3.x and Tomcat 4.x installed on a SLES box.  What do I need
to configure in Tomcat so that it knows what to do w/ .php files? 
Tomcat is acting as the webserver and not apache.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and PHP

2004-07-16 Thread QM
On Fri, Jul 16, 2004 at 11:15:58AM -0500, Ryan McCain wrote:
: I have PHP 3.x and Tomcat 4.x installed on a SLES box.  What do I need
: to configure in Tomcat so that it knows what to do w/ .php files? 
: Tomcat is acting as the webserver and not apache.

These instructions imply PHP v4:

http://wiki.apache.org/jakarta-tomcat/UsingPhp
[1]

but it's worth a shot, as a quick glance didn't reveal anything
PHP4-specific.

-QM

[1] aka 
"http://www.google.com/search?hl=en&ie=UTF-8&q=site%3Aapache.org+tomcat+php&btnG=Google+Search";

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and PHP

2004-07-16 Thread Ryan McCain

I have PHP 3.x and Tomcat 4.x installed on a SLES box.  What do I need
to configure in Tomcat so that it knows what to do w/ .php files? 
Tomcat is acting as the webserver and not apache.

thanks,
ryan



--

Ryan McCain
Northrop Grumman
Linux System Administrator 3
email: [EMAIL PROTECTED]
Phone: 225.219.0556
Fax: 225.219.0540


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wiki page on tomcat and PHP

2004-05-07 Thread Shapira, Yoav

Hi,

>Yoav,  this is merely a way for Tomcat to serve php files, right?  So
>for example, if someone had JSP pages and PHP pages within the same
app,
>they're not going to share the same Session. ie: you couldn't access
any
>JSP implicit objects from the PHP pages, or vica-versa ?

I don't know, I didn't try that ;)

Yoav




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: Wiki page on tomcat and PHP

2004-05-07 Thread Mike Curwen
Yoav,  this is merely a way for Tomcat to serve php files, right?  So
for example, if someone had JSP pages and PHP pages within the same app,
they're not going to share the same Session. ie: you couldn't access any
JSP implicit objects from the PHP pages, or vica-versa ?
 


> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 07, 2004 10:30 AM
> To: Tomcat Users List
> Subject: Wiki page on tomcat and PHP
> 
> 
> 
> Hi,
> I've just created a wiki page for integrating tomcat with PHP (without
> Apache): http://wiki.apache.org/jakarta-tomcat/UsingPhp.  If 
> you're interesting in this area, please try it out and report 
> your findings.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wiki page on tomcat and PHP

2004-04-07 Thread Shapira, Yoav

Hi,
I've just created a wiki page for integrating tomcat with PHP (without
Apache): http://wiki.apache.org/jakarta-tomcat/UsingPhp.  If you're
interesting in this area, please try it out and report your findings.

Yoav Shapira
Millennium Research Informatics





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: Tomcat and PHP - It's possible

2003-11-03 Thread Patrick Willart
Hello Joao,

I have read an article on http://www.3plus4software.de/ in which Tomcat's
cgi servlet was configured to serve PHP.

I haven't tested it myself and the information is in German, but it didn't
look very complicated.

Unfortunately I couldn't find the article anymore on their site. Luckily I
saved the article to my harddisk as an .mht (Internet Explorer web archive
file). Let me know if you want me to mail that file.

Best regards,

Patrick

-Original Message-
From: Joao Medeiros [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 9:08 AM
To: Tomcat Users List
Subject: Tomcat and PHP


Hi folks,

I was wondering if anyone has any experience  with Tomcat serving PHP...
I've looked in a lot of places so far but all I can get is pieces of
information that I can't put together. Sure someone somewhere must have
a 'How-To' that explains how to do this but I just can't find it...

TIA,
--Jo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat and PHP

2003-11-03 Thread Robert Charbonneau
On November 3, 2003 12:07 pm, Joao Medeiros wrote:
> Hi folks,
>
> I was wondering if anyone has any experience  with Tomcat serving PHP...
> I've looked in a lot of places so far but all I can get is pieces of
> information that I can't put together. Sure someone somewhere must have
> a 'How-To' that explains how to do this but I just can't find it...
>
> TIA,
> --Jo

This is very possible, so long as you're using Apache with mod_jk.so to mount 
your contexts from Tomcat.

If you're using Apache 2.x, you'd compile PHP as a shared object, and not as a 
module.  So you'd have htdocs/php and you'd mount your Tomcat contexts as 
/jsp or some such thing.  Apache will deal with serving PHP pages, but you 
can't for instance put a PHP page in /jsp .  You can *only* serve PHP pages 
through Apache, not Tomcat.  But you can have both PHP scripts and JSPs on 
the same web.

--
Robert Charbonneau
[EMAIL PROTECTED]
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and PHP

2003-11-03 Thread Hart, Justin
Why not connect Tomcat to Apache, and use mod-php?

-Original Message-
From: Joao Medeiros [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:08 PM
To: Tomcat Users List
Subject: Tomcat and PHP


Hi folks,

I was wondering if anyone has any experience  with Tomcat serving PHP... 
I've looked in a lot of places so far but all I can get is pieces of 
information that I can't put together. Sure someone somewhere must have 
a 'How-To' that explains how to do this but I just can't find it...

TIA,
--Jo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat and PHP

2003-11-03 Thread Joao Medeiros
Hi folks,

I was wondering if anyone has any experience  with Tomcat serving PHP... 
I've looked in a lot of places so far but all I can get is pieces of 
information that I can't put together. Sure someone somewhere must have 
a 'How-To' that explains how to do this but I just can't find it...

TIA,
--Jo


smime.p7s
Description: S/MIME Cryptographic Signature


Tomcat and php

2002-11-06 Thread ben f

Hi

I'm new to tomcat but not php. I'm trying to get tomcat to run php as a servlet on 
WINNT 4.0.

Tomcat version 4.1.12

PHP version 4.2.3

I have amended my server.xml file to include an entry for a php servlet as below:



I have added phpsrvlt.jar to my %TOMCAT_HOME%\webapps\php-server\WEB-INF\lib directory.

When I run a file named test.php under %TOMCAT_HOME%\webapps\php-server as 
http://localhost:8080/test.php it works for 3 strikes then tomcat falls over.

When I run a simple print script called /php-server/test2.php (or even the test.php 
that works under ROOT) from %TOMCAT_HOME%\webapps\ROOT I get the a http 500 and these 
errors:

javax.servlet.ServletException: bailout
at net.php.servlet.send(Native Method)
at net.php.servlet.service(servlet.java:162)
at net.php.servlet.service(servlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:479)

I'm sure this must be a simple error as tomcat itself is serving it's documents very 
well and quickly. Can anyone out there help?

Thanks for reading.




-
Get a bigger mailbox -- choose a size that fits your needs.



AW: Tomcat and PHP-servlet?

2002-10-14 Thread Ralph Einfeldt

If a native library causes a segmentation fault, the 
complete vm will crash.

So with each native library that you are using you introduce
possible stability degrations.

The creation of segmentation faults is not the only
risk. With each library (native or not) you use, you 
increase the risk to crash tomcat. The libraries might 
introduce application level errors that might stop tomcat 
from working, like memory leaks, file handle leaks, 
deadlocks, ...).

If you can live with this risk depends on your requirements.
In the end you always will have to test if your application
is stable enough with this system.

> -Ursprüngliche Nachricht-
> Von: Sven Köhler [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 14. Oktober 2002 17:38
> An: [EMAIL PROTECTED]
> Betreff: Tomcat and PHP-servlet?
> 
> 
> hi,
> 
> in the PHP-docs, a servlet is mentioned, that makes .php 
> pages runnable 
> again (somehow by loading PHP into the JavaVM).
> 
> How stable can that be?
> I worry aout the following:
>PHP could internally produce a segmentation-fault. Does that also 
> crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
> unstabe.
> 
> Is anybody out there, that runs this "PHP-servlet" ???
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat and PHP-servlet?

2002-10-14 Thread Sven Köhler

forget this post ... i now know, that the php-servlet is still 
experimental ...

Sven Köhler wrote:
> hi,
> 
> in the PHP-docs, a servlet is mentioned, that makes .php pages runnable 
> again (somehow by loading PHP into the JavaVM).
> 
> How stable can that be?
> I worry aout the following:
>   PHP could internally produce a segmentation-fault. Does that also 
> crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
> unstabe.
> 
> Is anybody out there, that runs this "PHP-servlet" ???




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and PHP-servlet?

2002-10-14 Thread Sven Köhler

hi,

in the PHP-docs, a servlet is mentioned, that makes .php pages runnable 
again (somehow by loading PHP into the JavaVM).

How stable can that be?
I worry aout the following:
   PHP could internally produce a segmentation-fault. Does that also 
crash the process(thread?) of the JavaVM? If yes, Tomcat would become 
unstabe.

Is anybody out there, that runs this "PHP-servlet" ???




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat and PHP

2002-07-24 Thread Ken Sanderson

Is it possible to setup Tomcat to run PHP without using Apache, IIS, etc?

Ken

Miistakis Institute for the Rockies
c/o Faculty of Environmental Design
2500 University Drive NW
Calgary, Alberta
T2N 1N4

t 1 (403) 220-8968
  1 (403) 220-2573
w www.rockies.ca

"facilitating ecosystem research & management in the Rocky Mountains"

--
To unsubscribe, e-mail:   
For additional commands, e-mail: