Re: How can we use php with tomcat

2007-01-09 Thread Reparto Tecnico - Assistenza

Le Phuoc Canh ha scritto:

Can we use php with tomcat ?
If anybody know about it, please help me.

Thanks  Best Regard.

  

   I have installed on my Tomcat 5.5.20 the PHP 4.0 ...

   there are 2 ways :
   1) using the famous php servlet   phpsrvlt.jar that requires 
external libraries to work


   2) using the slow CGI-BIN PHP interpreter

   The second way is very simple , it requires only to add a few lines 
on web.xml 

!-- PHP-CGI Servlet Declaration --
servlet
servlet-namephp/servlet-name

servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class

init-param
param-nameexecutable/param-name
param-value/var/www/sbin/php4.ELF/param-value
/init-param
init-param
param-namedebug/param-name
param-value1/param-value
/init-param
init-param
param-namecgiPathPrefix/param-name
param-value./param-value
/init-param
load-on-startup5/load-on-startup
/servlet

!-- The mapping for the PHP-CGI servlet --
servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
/servlet-mapping



   and  install (on Debian) the PHP CLI package
   (CLI = Command Line Interpreter) .

   Hope this may help you   :-)

  Gabriele Burattini



Le informazioni contenute nella presente e-mail e negli eventuali 
allegati, devono essere nella disponibilita' del solo destinatario. Se 
avete ricevuto per errore questa e-mail siete pregati di informarci 
(rispedendola al mittente) e di provvedere alla sua rimozione. Possono 
essere presenti informazioni riservate e non corrette (parzialmente o 
totalmente). Le e-mail in partenza e in arrivo possono essere oggetto di 
monitoraggio da parte di FaberSoft S.r.l. Del contenuto e' responsabile 
il mittente della presente.


Chiunque venga in possesso non autorizzato di questa e-mail e' vincolato 
dalla Legge a non leggerne il contenuto, a non copiarla, a non 
diffonderla e a non usarla. La informiamo che per l'esercizio dei 
diritti di cui all'art. 7 del D.Lgs. 196/2003 puo' rivolgersi al 
Titolare del trattamento FaberSoft Srl per posta o per fax, indicando 
sulla busta o sul foglio la dicitura Inerente alla Privacy, o inviando 
una e-mail all'indirizzo [EMAIL PROTECTED] .




How can we use php with tomcat

2007-01-03 Thread Le Phuoc Canh
Can we use php with tomcat ?
If anybody know about it, please help me.

Thanks  Best Regard.


Re: How can we use php with tomcat

2007-01-03 Thread dat
Hi,
Tomcat is java container,
can't use for PHP.
If you like to use php and java in one web server,
you have to make web server with following configure:
  Apache(php) + Tomcat (java)

 Can we use php with tomcat ?
 If anybody know about it, please help me.

 Thanks  Best Regard.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can we use php with tomcat

2007-01-03 Thread Hassan Schroeder

On 1/3/07, Le Phuoc Canh [EMAIL PROTECTED] wrote:

Can we use php with tomcat ?


Google is your friend: http://www.google.com/search?q=tomcat+php

And the first entry: http://wiki.apache.org/tomcat/UsingPhp

HTH!
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]