?
Solved

Title: How to run PHP on TOMCAT 5.0.30 ? or put PHP and JSP together on IIS ???

Posted on 2006-05-12
10
Medium Priority
?
3,115 Views
Last Modified: 2008-01-09
Dear All,

I have got PHP files (on PHP 4.4.1)  and it works well with App Serve 2.4.5
I have also got JSP files and it works well with TomCat 5.0.30

I integrated PHP files with JSP files on TOMCAT 5.0.30
I can only see the interface button but when i click on the button to process the results , it did not work.....

Anyone know how to take the PHP files to run on TOMCAT 5.0.30?
I would like to integrate JSP and PHP files together to run on TOMCAT 5.0.30....and How could I do that...?

I saw on the web illustrating how to run PHP on TOMCAT 4.1 by adding mod_jk into Apache

and update the config in  httpd.conf  by coding:

CODE  

LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "C:/tomcat/conf/jk/workers.properties"

JkLogFile "C:/tomcat/logs/mod_jk.log"

JkMount /*.jsp ajp13

-----------------------------------------------
However, in Tomcat 5.0.30 it has not got workers.properties in  C:/tomcat/conf/
(but has jk2.properties)
Also no mod_jk.log in C:/tomcat/logs/

a friend of mine suggested to run PHP and JSP on  IIS by changing a config of IIS to know PHP and JSP....I am note sure now which one should work and easy to do....
 
0
Comment
Question by:korsila
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16665569
Hi korsila,


There is a section in the PHP manual about using PHP with Apache's Jakarta/tomcat. Is this the same thing? Take a look at http://www.php.net/manual/en/ref.java.php

Regards,

Richard Quadling.
0
 

Author Comment

by:korsila
ID: 16689983
I will take a look and will come back to you as soon as i can figure out/sort it out...i have tried many ways....but not yet to get into the right direction.... but many thanks for the link....wil read through and get back to you if I can not find the way....
0
 

Author Comment

by:korsila
ID: 16690080
Richard,

Is the stuff can run on the window ?

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16690236
I think so. The notes say ...

Note:
In order to enable this module on a Windows environment with PHP <= 4.0.6, you must make jvm.dll available to your systems PATH. No additional DLL is needed for PHP versions > 4.0.6.

0
 

Author Comment

by:korsila
ID: 16696612
Richard,

I had a look at it...but it's PHP with JAVA? in my case i would like JSP to work with PHP in any platform running on Aprache/TOMCAT or even working together in ISS...but the website you mentioned is about PHP with JAVA???..


0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 16706646
Are the PHP and JSP going to interact in any way?

Is your server going to serve JSP and PHP as 2 separate things?

Have you tried simply installing PHP as you would normally for Apache?

I don't use Apache or IIS. I use Sambar Server. I can tell it that PHP is handled by the ISAPI module C:\PHP5\php5isapi.dll and I suppose JSP files would be handled by some sort of Java ISAPI module (if needed). I think Sambar may even have JSP support built in.

http://www.sambar.com/syshelp/javaeng.htm shows details on Sambar Server ('tis free) and JSP. Maybe the notes here can help.
0
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 400 total points
ID: 16706667
http://tomcat.apache.org/faq/connectors.html

Add-ons. Adding on CGI, perl, PHP is very natural to Apache. Its slower and more of a kludge for Tomcat. Apache also has hundreds of modules that can be plugged in at will. Tomcat can have this ability, but the code hasn't been written yet.


http://tomcat.apache.org/tomcat-4.1-doc/config/connectors.html

Why a Tomcat connector with a native Web Server?

    A Web Server can host different applications written using PERL, PHP, C or any other language. If one application is written in Java using the Servlet API a connector is need to route the requests from the Web Server to the Servlet Engine. In the case a Web Server specific connector is needed. Most of the Web Servers allow to load dynamic extentions (DLL). Some of these extentions are available in the binary builds of connectors.




It seems that adding PHP support to Tomcat is not really appropriate. But using Apache or Sambar or if you really have to IIS, then you could.


Sambar is available from http://www.sambar.com and is a Windows server primarily.

Installation of Sambar with PHP takes me less than 2 minutes after running the installer for Sambar and the unzip of PHP. If starting from scratch, give yourself an hour. Alternatively, come back here and ask lots of questions for me to answer or look at my profile for contact details.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question