473,390 Members | 875 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,390 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 4088
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.