PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Configure Tomcat to run PHP scripts
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Configure Tomcat to run PHP scripts

Réponse
 
LinkBack Outils de la discussion
Vieux 12/02/2008, 13h26   #1
kodaliece@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 12/02/2008, 17h21   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Configure Tomcat to run PHP scripts

kodaliece@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.
jstucklex@attglobal.net
==================

  Réponse avec citation
Vieux 13/02/2008, 03h34   #3
kodaliece@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Configure Tomcat to run PHP scripts

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:21pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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 -


  Réponse avec citation
Vieux 13/02/2008, 03h45   #4
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Configure Tomcat to run PHP scripts

kodaliece@gmail.com wrote:
> On Feb 12, 10:21 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> 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.
jstucklex@attglobal.net
==================

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h04.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14897 seconds with 12 queries