use php in servlet engine.

2005-09-06 Thread David Delbecq
Hello,

We are facing a question here. How to integrate an old
existing php site inside a tomcat container. 
I think about 2 possible solutions:

1) run apache+php on a specific port and have tomcat
do some proxying on a url. (like http://server/php/* - apache-php)
2) create a webapplication supporting php using instruction provided on wiki:
http://wiki.apache.org/jakarta-tomcat/UsingPhp

The second one is more interesting (no need to run an additionnal apache 
process)
However, am a bit worried about this comment on php documentation:
http://be.php.net/manual/en/print/ref.java.php

PHP has a habit of changing the working directory. sapi/servlet will 
eventually 
 change it back, but while PHP is running the servlet engine may not be 
able to 
 load any classes from the CLASSPATH which are specified using a relative 
directory 
 syntax, or find the work directory used for administration and JSP 
compilation tasks.

Has anyone here already tried this and experiences issue with this servlet?

Thanks for sharing your experience.

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: use php in servlet engine.

2005-09-06 Thread Viorel Dragomir
Choose 1.
But with some modifications

apache + php + mod_jk - tomcat



Viorel Dragomir

.
..
---



- Original Message - 
From: David Delbecq 
To: Tomcat Users List 
Sent: Tuesday, September 06, 2005 10:00
Subject: use php in servlet engine.


Hello,

We are facing a question here. How to integrate an old
existing php site inside a tomcat container. 
I think about 2 possible solutions:

1) run apache+php on a specific port and have tomcat
do some proxying on a url. (like http://server/php/* - apache-php)
2) create a webapplication supporting php using instruction provided on wiki:
http://wiki.apache.org/jakarta-tomcat/UsingPhp

The second one is more interesting (no need to run an additionnal apache 
process)
However, am a bit worried about this comment on php documentation:
http://be.php.net/manual/en/print/ref.java.php

PHP has a habit of changing the working directory. sapi/servlet will 
eventually 
 change it back, but while PHP is running the servlet engine may not be 
able to 
 load any classes from the CLASSPATH which are specified using a relative 
directory 
 syntax, or find the work directory used for administration and JSP 
compilation tasks.

Has anyone here already tried this and experiences issue with this servlet?

Thanks for sharing your experience.

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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

Re: use php in servlet engine.

2005-09-06 Thread David Delbecq
Le Mardi 6 Septembre 2005 11:07, Viorel Dragomir a écrit :
 Choose 1.
 But with some modifications
 
 apache + php + mod_jk - tomcat
 

am not used to apache configuration, and have read several mails related
to mod_jk problem since am watching this mailing list (well , so guess what, am 
a bit worried about it :)
moreover if the pirinciple of mod_jk is to have apache dispatch servlet related 
thingie to
tomcat, that is not the best solution imho (we have running java application 
now on a specific port and
moving it away to give place for an apache proxy is a bit lot of work, and 
maybe a bit of downtime too).
Anyway, I'll check. 

Thanks.

 
 
 Viorel Dragomir
 
 .
 ..
 ---
 
 
 
 - Original Message - 
 From: David Delbecq 
 To: Tomcat Users List 
 Sent: Tuesday, September 06, 2005 10:00
 Subject: use php in servlet engine.
 
 
 Hello,
 
 We are facing a question here. How to integrate an old
 existing php site inside a tomcat container. 
 I think about 2 possible solutions:
 
 1) run apache+php on a specific port and have tomcat
 do some proxying on a url. (like http://server/php/* - apache-php)
 2) create a webapplication supporting php using instruction provided on wiki:
 http://wiki.apache.org/jakarta-tomcat/UsingPhp
 
 The second one is more interesting (no need to run an additionnal apache 
 process)
 However, am a bit worried about this comment on php documentation:
 http://be.php.net/manual/en/print/ref.java.php
 
 PHP has a habit of changing the working directory. sapi/servlet will 
 eventually 
  change it back, but while PHP is running the servlet engine may not be 
 able to 
  load any classes from the CLASSPATH which are specified using a relative 
 directory 
  syntax, or find the work directory used for administration and JSP 
 compilation tasks.
 
 Has anyone here already tried this and experiences issue with this servlet?
 
 Thanks for sharing your experience.
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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