Radhakrishna

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 http://www.php.net/manual/en/security.cgi-bin.php

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.

Regards

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 <[EMAIL PROTECTED]>
wrote:

From: Radhakrishnavangara <[EMAIL PROTECTED]>
Subject: Intgrate Tomcat and PHP in winxp
To: users@tomcat.apache.org
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.
http://www.windowscomputer.com/node/3814
http://www.theasolutions.com/tutorials/tomcatphp.jsp
http://the-double-0-project.net/blog/?tag=tomcat
http://209.85.175.104/search?q=cache:szlV41sb9qwJ:uranus.im.chu.edu.tw/~dtchang/phpexplorer/html/download.php%3Ffn%3D..%252F..%252Fpub%252F.%252Fdownload%252Fapache_tomcat%252FRunning%2Bphp%2B5.x%2Bon%2Bwindows%2Busing%2Btomcat%2B4.x%2Bor%2B5.x%2B-%2BSimple%2BThoughts%2B-%2BJava%2Band%2BWeb%2BSoftware.pdf+angusman+tomcat&hl=en&ct=clnk&cd=7&gl=in
http://www.duminy.fr/blog/?p=22&language=en

Thanks and Regards,
Radhakrishna
--
View this message in context:
http://www.nabble.com/Intgrate-Tomcat-and-PHP-in-winxp-tp19022523p19022523.html
Sent from the Tomcat - User mailing list archive at
Nabble.com.

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: http://www.php.net/manual/en/
For Tomcat6: http://tomcat.apache.org/tomcat-6.0-doc/index.html
For Tomcat5.5: http://tomcat.apache.org/tomcat-5.5-doc/index.html

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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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]

Reply via email to