tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chaney <>
Subject Re: Intgrate Tomcat and PHP in winxp
Date Mon, 18 Aug 2008 17:19:15 GMT

The main issue here is that it is probably not worth doing. You would 
probably be better off investigating tuning apache and php. I assume 
that your existing installation uses mod_php? If so, the php and apache 
lists may be of help. httpd can be extensively tuned for memory 
footprint and performance.

Tomcat is a java application server. The cgi access method is a 
convenience for working with other types of application (non-java). If 
you use the cgi approach you will:

1. create an entirely new process for each request (very time consuming 
in both memory and cpu cycles)

2. be open to more security vulnerabilities. See

Unless your server is serving predominantly java applications with a few 
  PHP apps your proposed approach will be slower, not faster, and more 
difficult to maintain.

As far as doing it 'step by step', IMHO this is an 'advanced' task and 
you should not be undertaking it until you fully understand all the 
implications for performance and security. As Tommy suggests, read and 
understand the documentation first.


Alan Chaney

Radhakrishnavangara wrote:
> Hi Tommy,
> That was really informative. But let me explain you the actual scenario. I
> am using an application called phpESP ( a survey tool developed in PHP) and
> running on Apache httpd. The application is running fine, but it is
> consuming lot of memory space in the server. So we have decided to move the
> application and deploy on a lighter application server. That's the reason we
> have decided to deploy on Tomcat. So could you please let me know your
> opinion on the same. 
> Also i am a beginner to PHP and Tomcat. Also i have spend lot of time on
> this and now i have to some how finish this task. Offline i will take your
> guidance on understanding this technology. For now could you please explain
> us with the step by step instruction on how to finish the same task.

> Regards,
> Radhakrishna
> Tommy Pham wrote:
>> Hi Radhakrishna,
>> --- On Sun, 8/17/08, Radhakrishnavangara <>
>> wrote:
>>> From: Radhakrishnavangara <>
>>> Subject: Intgrate Tomcat and PHP in winxp
>>> To:
>>> Date: Sunday, August 17, 2008, 3:24 PM
>>> Hi,
>>> Could you please let me know the step by step instructions
>>> for integrating
>>> Tomcat with PHP on Win XP. I have tried implementing
>>> various methodologies
>>> to integrate the same , but i could not achieve any
>>> breakthrough on the
>>> same. Below are some of the links to the articles which i
>>> have referred.
>>> Could you please go through the same and clarify me on this
>>> issue. 
>>> Thanks and Regards,
>>> Radhakrishna
>>> -- 
>>> View this message in context:
>>> Sent from the Tomcat - User mailing list archive at
>> IMO if you want to use PHP with Tomcat, it's best you read the
>> documentation for both products and their technology as it will help you
>> secure the server/platform and troubleshoot any problems that may arise
>> including application crashes and security breaches.
>> For PHP5:
>> For Tomcat6:
>> For Tomcat5.5:
>> You can just go through the installation steps w/o doing the actual
>> installation to see what you have available.  Though I haven't tried this
>> method, I think you can run PHP as CGI in Tomcat.  You'll just have to
>> edit the web.xml in $CATALINA_HOME/conf folder and follow PHP's
>> instruction of installing as CGI.
>> The method I prefer and have tested to work (in Unix environment although
>> on Windows should be similar) is running Apache HTTPD server with PHP as a
>> mod and use the connector to connect to Tomcat.  If this method is used,
>> it's easier to implement other technologies later such Perl, Python and
>> Mono (for .Net) inside Apache HTTPD as mod-*.
>> But you may want to evaluate your needs and goals before choosing ;)
>> Regards,
>> Tommy
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail:
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message