You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Le Phuoc Canh <ca...@atvn.com.vn> on 2007/01/04 06:23:26 UTC

How can we use php with tomcat

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

Posted by Reparto Tecnico - Assistenza <sy...@fabersoft.it>.
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-name>php</servlet-name>
>         
> <servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class>
>                 <init-param>
>                         <param-name>executable</param-name>
>                         <param-value>/var/www/sbin/php4.ELF</param-value>
>                 </init-param>
>                 <init-param>
>                         <param-name>debug</param-name>
>                         <param-value>1</param-value>
>                 </init-param>
>                 <init-param>
>                         <param-name>cgiPathPrefix</param-name>
>                         <param-value>.</param-value>
>                 </init-param>
>                 <load-on-startup>5</load-on-startup>
>         </servlet>
>
>         <!-- The mapping for the PHP-CGI servlet -->
>         <servlet-mapping>
>                 <servlet-name>php</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 amministrazione@fabersoft.it .


Re: How can we use php with tomcat

Posted by da...@jv-net.gr.jp.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: How can we use php with tomcat

Posted by Hassan Schroeder <ha...@gmail.com>.
On 1/3/07, Le Phuoc Canh <ca...@atvn.com.vn> 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 ------------------------ hassan.schroeder@gmail.com

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