By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,899 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,899 IT Pros & Developers. It's quick & easy.

PHP & Tomcat

P: n/a
We are getting new computers at work and I got the word today that pc-lan
(network admins) do not want IIS installed on ANY machine. We are primarily
a Java development house, so they will not balk about me installing Tomcat.

Can I run PHP from Tomcat the same (or close to) as IIS?

Thanks.
--
SamMan
Rip it to reply

Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
SamMan wrote:

Hi Samman
We are getting new computers at work and I got the word today that pc-lan
(network admins) do not want IIS installed on ANY machine. We are
primarily a Java development house, so they will not balk about me
installing Tomcat.

Can I run PHP from Tomcat the same (or close to) as IIS?
Tomcat?
Tomcat is for Java.

Use APACHE instead.
It runs great and supports PHP.
Regards,
Erwin Moller

Thanks.


Jul 17 '05 #2

P: n/a
Erwin Moller <si******************************************@spam yourself.com> wrote:
Can I run PHP from Tomcat the same (or close to) as IIS?
Tomcat?
Tomcat is for Java.

Use APACHE instead.


But tomcat is an Apache project.
It runs great and supports PHP.


Normal procedure would be to install:
-Apache httpd
-Apache tomcat
-php
-mod-jk for apache

Guessing that since it's a java shop they will do things in Java... But
why use PHP if you tomcat available?

Jul 17 '05 #3

P: n/a
On 4/15/05 3:23 AM, in article 42*********************@news6.xs4all.nl,
"Daniel Tryba" <pa**********@invalid.tryba.nl> wrote:
Erwin Moller <si******************************************@spam yourself.com>
wrote:
Can I run PHP from Tomcat the same (or close to) as IIS?


Tomcat?
Tomcat is for Java.

Use APACHE instead.


But tomcat is an Apache project.
It runs great and supports PHP.


Normal procedure would be to install:
-Apache httpd
-Apache tomcat
-php
-mod-jk for apache

Guessing that since it's a java shop they will do things in Java... But
why use PHP if you tomcat available?


I'm of the opinion that PHP and Tomcat can make a good combination. Tomcat
can be set up to run PHP as a servlet, and PHP has some Java support (the
hype far exceeds the reality in this case, but it's still a Good Thing in my
book)

In keeping with the principle of "alternating hard and soft layers" (see
http://c2.com/cgi/wiki?AlternateHardAndSoftLayers ) I think that PHP makes a
wonderful replacement for JSP. You can do all your hard-core component
building in Java (with a small number of highly-paid developers), and keep
the visible layer in PHP, (with as many moderately paid developers as you
like) assembling those components.

Teaching production people how to use objects is a lot easier than training
people to build objects. This is the same idea as Java/JSP (embedding Java
in HTML pages) except that you get to use the highly-popular language PHP
and the correspondingly large developer pool, as well as gaining access to
all the already-developed software for PHP.

Personally, I think PHP in combination with Java is a sweet setup. I just
wish that the "native Java support" that PHP has been claiming since 2001
would materialize.

Just my opinion,
Steve

Jul 17 '05 #4

P: n/a

"Daniel Tryba" <pa**********@invalid.tryba.nl> wrote in message
news:42*********************@news6.xs4all.nl...
Erwin Moller
<si******************************************@spam yourself.com> wrote:
Can I run PHP from Tomcat the same (or close to) as IIS?


Tomcat?
Tomcat is for Java.

Use APACHE instead.


But tomcat is an Apache project.
It runs great and supports PHP.


Normal procedure would be to install:
-Apache httpd
-Apache tomcat
-php
-mod-jk for apache

Guessing that since it's a java shop they will do things in Java... But
why use PHP if you tomcat available?


It's kind of a long story, but some static sites we support run an another
agencies server... with no Java, JSP (or even ASP) available. They pride
themselves on the open source end of things, but don't do it very well. To
cut the ties as much as we can (another long story), I converted many of
their cgi processing of forms to PHP processed. I currently use PHP under
IIS for basic testing of scripts (within Dreamweaver).

Thanks for the clarification of Tomcat & Apache.

--
SamMan
Rip it to reply

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.