473,326 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Configure Tomcat to run PHP scripts

Hello Everyone,

I am trying to configure Tomcat5.5 to run PHP5.2.5 scripts on linux
machine. I got some information from http://wiki.apache.org/tomcat/UsingPhp
as how to do this. First, It says to apply patch to configuration file
and then apply a patch to sapi/servlet/servlet.java. But I am stuck at
the first step it self. In the first step it says to apply a patch.
But I could not get which file I've to modigy and where. I firmly
bellieve that this is because the article talks about PHP version 4
and Tomcat version >= 4 and I am using a higher version of PHP. I said
this because I couldn't find servlet/servlet.java under the folder
sapi. Please correct me if I am doing anything wrong here.

Can anyone give me the compatibility matrix of PHP versions and Tomcat
versions or atleast the highet compatible version of PHP with Tomcat
5.5.

Also, please give me a detailed procedure about configuring Tomcat5.5
to run with PHP5.2.5 on linux machine. I am new to this technology.
So, please give a detailed procedure.

Thanks in advance,
Mohan
Feb 12 '08 #1
3 4084
ko*******@gmail.com wrote:
Hello Everyone,

I am trying to configure Tomcat5.5 to run PHP5.2.5 scripts on linux
machine. I got some information from http://wiki.apache.org/tomcat/UsingPhp
as how to do this. First, It says to apply patch to configuration file
and then apply a patch to sapi/servlet/servlet.java. But I am stuck at
the first step it self. In the first step it says to apply a patch.
But I could not get which file I've to modigy and where. I firmly
bellieve that this is because the article talks about PHP version 4
and Tomcat version >= 4 and I am using a higher version of PHP. I said
this because I couldn't find servlet/servlet.java under the folder
sapi. Please correct me if I am doing anything wrong here.

Can anyone give me the compatibility matrix of PHP versions and Tomcat
versions or atleast the highet compatible version of PHP with Tomcat
5.5.

Also, please give me a detailed procedure about configuring Tomcat5.5
to run with PHP5.2.5 on linux machine. I am new to this technology.
So, please give a detailed procedure.

Thanks in advance,
Mohan
Mohan,

You will have to build PHP from the source code. For this you will need
the gcc compiler plus development libraries for other products you might
want to use, i.e. mysql, gd, etc.

If you've never built something from scratch before, you probably have a
lot of downloading to do.

The file hasn't changed. It is still configure, and is available with
the source code download. Lines may have changed, however, so you may
need to do some looking through the file to determine exactly where the
patch goes, and modify it accordingly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 12 '08 #2
Hi Jerry,

So, you mean to say that PHP 5.2.5 scripts can be run on Tomcat5.5. In
that case what about the second path to java file (sapi/servlet/
servlet.java). I could not find this path at all.

can you please give me some more information on this?

Thanks
Mohan
On Feb 12, 10:21*pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
kodali...@gmail.com wrote:
Hello Everyone,
I am trying to configure Tomcat5.5 to run PHP5.2.5 scripts on linux
machine. I got some information fromhttp://wiki.apache.org/tomcat/UsingPhp
as how to do this. First, It says to apply patch to configuration file
and then apply a patch to sapi/servlet/servlet.java. But I am stuck at
the first step it self. In the first step it says to apply a patch.
But I could not get which file I've to modigy and where. I firmly
bellieve that this is because the article talks about PHP version 4
and Tomcat version >= 4 and I am using a higher version of PHP. I said
this because I couldn't find servlet/servlet.java under the folder
sapi. Please correct me if I am doing anything wrong here.
Can anyone give me the compatibility matrix of PHP versions and Tomcat
versions or atleast the highet compatible version of PHP with Tomcat
5.5.
Also, please give me a detailed procedure about configuring Tomcat5.5
to run with PHP5.2.5 on linux machine. I am new to this technology.
So, please give a detailed procedure.
Thanks in advance,
Mohan

Mohan,

You will have to build PHP from the source code. *For this you will need
the gcc compiler plus development libraries for other products you might
want to use, i.e. mysql, gd, etc.

If you've never built something from scratch before, you probably have a
lot of downloading to do.

The file hasn't changed. *It is still configure, and is available with
the source code download. *Lines may have changed, however, so you may
need to do some looking through the file to determine exactly where the
patch goes, and modify it accordingly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -
Feb 13 '08 #3
ko*******@gmail.com wrote:
On Feb 12, 10:21 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>kodali...@gmail.com wrote:
>>Hello Everyone,
I am trying to configure Tomcat5.5 to run PHP5.2.5 scripts on linux
machine. I got some information fromhttp://wiki.apache.org/tomcat/UsingPhp
as how to do this. First, It says to apply patch to configuration file
and then apply a patch to sapi/servlet/servlet.java. But I am stuck at
the first step it self. In the first step it says to apply a patch.
But I could not get which file I've to modigy and where. I firmly
bellieve that this is because the article talks about PHP version 4
and Tomcat version >= 4 and I am using a higher version of PHP. I said
this because I couldn't find servlet/servlet.java under the folder
sapi. Please correct me if I am doing anything wrong here.
Can anyone give me the compatibility matrix of PHP versions and Tomcat
versions or atleast the highet compatible version of PHP with Tomcat
5.5.
Also, please give me a detailed procedure about configuring Tomcat5.5
to run with PHP5.2.5 on linux machine. I am new to this technology.
So, please give a detailed procedure.
Thanks in advance,
Mohan
Mohan,

You will have to build PHP from the source code. For this you will need
the gcc compiler plus development libraries for other products you might
want to use, i.e. mysql, gd, etc.

If you've never built something from scratch before, you probably have a
lot of downloading to do.

The file hasn't changed. It is still configure, and is available with
the source code download. Lines may have changed, however, so you may
need to do some looking through the file to determine exactly where the
patch goes, and modify it accordingly.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================- Hide quoted text -

- Show quoted text -


Hi Jerry,

So, you mean to say that PHP 5.2.5 scripts can be run on Tomcat5.5. In
that case what about the second path to java file (sapi/servlet/
servlet.java). I could not find this path at all.

can you please give me some more information on this?

Thanks
Mohan

(Top posting fixed)

I've never tried it, but from the page you referenced, it looks like it can.

And it looks like you need to find where your servlet.java file is and
reference it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Feb 13 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Agah Orhan Dikmen | last post by:
Hi folks, I want to know if I can make my tomcat available for PHP scripts, so I can both run Servlet/JSP and PHP scripts in the same server ;) Thx all,
4
by: SamMan | last post by:
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...
1
by: Liza | last post by:
Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a binary, not an RPM. It looks OK but it won't start at boot time. There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All...
3
by: danish | last post by:
hi everyone..sorry everyone if ive posted on the wrong group but i really needed help.... i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the sheel scripts...i normally use the...
0
by: Geethu03 | last post by:
Hi I am working with the Tomcat5.0 web apllication with JSP. Now i want to use the PHP programs so i want to confiure the PHP in my Tomcat5.0 version. I download the PHP5.2.3 windows version...
2
by: abhilash12 | last post by:
hai how can configure log4j in tomcat pls help me
1
by: prafullgs | last post by:
Hello, I am running jsp from tomcat 6.0 , now i also want to run PHP from the same tomcat server. Is it possible for me to run both from the same tomcat server?? if yes Then could anyone please...
1
kaleeswaran
by: kaleeswaran | last post by:
Hi! I Downloaded Tomcat 6.i Unzipped And I Placed In My Drive,, I Already Have A Jdk1.5. Now I Don't Know What Shall I Do.. Is There Any Setting Up The Class Path For Tomcat Server?. If There...
11
by: mjahabarsadiq | last post by:
Hi I have created a web application. I am using ant to build the war and deploy in tomcat. The war file is deployed under "TOMCATE_HOME/work/standalone/localhost/onlineres.war". I have my...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.