PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Apache, Tomcat and PHP -- why not?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Apache, Tomcat and PHP -- why not?

Réponse
 
LinkBack Outils de la discussion
Vieux 05/04/2005, 22h04   #1
No Such User
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache, Tomcat and PHP -- why not?

I am running Apache 2.0.53 with PHP 4.3.10 and tomcat 4.1.31 on Solaris 9.
Apache runs PHP flawlessly, and tomcat runs via mod_jk through apache, also
flawlessly. My one problem is, pages served up by tomcat to apache don't
get run through PHP. I would like to put php code in my servlets, but
right now that code gets passed through unexecuted.

Is there any way I can get the output of servlets to be run through php
before apache sends it all out?

  Réponse avec citation
Vieux 06/04/2005, 16h46   #2
Juha Laiho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache, Tomcat and PHP -- why not?

nospam@hanmail.net (No Such User) said:
>I am running Apache 2.0.53 with PHP 4.3.10 and tomcat 4.1.31 on Solaris 9.
>Apache runs PHP flawlessly, and tomcat runs via mod_jk through apache, also
>flawlessly. My one problem is, pages served up by tomcat to apache don't
>get run through PHP. I would like to put php code in my servlets, but
>right now that code gets passed through unexecuted.
>
>Is there any way I can get the output of servlets to be run through php
>before apache sends it all out?


I think I've seen some indications of being able to run the PHP interpreter
from within Tomcat. With that kind of set-up this might be possible.
That way you'd end up with chain Apache-Tomcat-PHP.

In context of Apache, PHP and Tomcat are parallel -- so they do not nest.
Perl (in form of mod_perl) has the capabilities needed to extend Apache
funtionality, so that would provide a way to modify content coming from
Tomcat.

But then, what are you doing that would be that much harder to implement
in Java, either as JSP includes, or by postprocessing in a Tomcat Valve
component (or even just a response filter)?
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
  Réponse avec citation
Vieux 07/04/2005, 01h20   #3
Nick Kew
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache, Tomcat and PHP -- why not?

No Such User wrote:

> Is there any way I can get the output of servlets to be run through php
> before apache sends it all out?
>

You're assuming the Apache filter architecture, which enables that kind
of thing. Ask the PHP developers when they're going to make it into
this century. Or use some other technology (either in apache or tomcat)
for your filtering.

--
Nick Kew
  Réponse avec citation
Vieux 07/04/2005, 06h32   #4
Nikola Milutinovic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache, Tomcat and PHP -- why not?

Juha Laiho wrote:
> nospam@hanmail.net (No Such User) said:
>
>>I am running Apache 2.0.53 with PHP 4.3.10 and tomcat 4.1.31 on Solaris 9.
>>Apache runs PHP flawlessly, and tomcat runs via mod_jk through apache, also
>>flawlessly. My one problem is, pages served up by tomcat to apache don't
>>get run through PHP. I would like to put php code in my servlets, but
>>right now that code gets passed through unexecuted.
>>
>>Is there any way I can get the output of servlets to be run through php
>>before apache sends it all out?

>
>
> I think I've seen some indications of being able to run the PHP interpreter
> from within Tomcat. With that kind of set-up this might be possible.
> That way you'd end up with chain Apache-Tomcat-PHP.
>
> In context of Apache, PHP and Tomcat are parallel -- so they do not nest.
> Perl (in form of mod_perl) has the capabilities needed to extend Apache
> funtionality, so that would provide a way to modify content coming from
> Tomcat.
>
> But then, what are you doing that would be that much harder to implement
> in Java, either as JSP includes, or by postprocessing in a Tomcat Valve
> component (or even just a response filter)?


There is a PHP servlet that can execute PHP code within Tomcat, but I'm not sure
which PHP functions it supports.

Nix.
  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 12h28.


É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,15339 seconds with 12 queries