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

Posted on 2006-05-12
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:


LoadModule jk_module modules/mod_jk.dll

JkWorkersFile "C:/tomcat/conf/jk/"

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

JkMount /*.jsp ajp13

However, in Tomcat 5.0.30 it has not got in  C:/tomcat/conf/
(but has
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....
Question by:korsila
    LVL 40

    Expert Comment

    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


    Richard Quadling.

    Author Comment

    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....

    Author Comment


    Is the stuff can run on the window ?

    LVL 40

    Expert Comment

    I think so. The notes say ...

    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.


    Author Comment


    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???..

    LVL 40

    Expert Comment

    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. shows details on Sambar Server ('tis free) and JSP. Maybe the notes here can help.
    LVL 40

    Accepted Solution


    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.

    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 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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Article by: Matthew
    I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    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…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now