You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Per Einar Ellefsen <pe...@skynet.be> on 2002/03/31 15:22:33 UTC
Proxy servers (was Re: AddModule mod_perl.c)
At 15:08 31.03.2002, John Kolvereid wrote:
>Hi Per,
> I realized right after I sent the note that
>mod_perl, as CGI, won't handle ordinary HTML. But I
>did learn later that mod_perl and PHP cannot co-exist
>at present. I'm not sure but I think there is a small
>glitch which can easily be overcome by someone
>responsible for the PHP OR mod_perl source files.
If you think you know where to bug is, I suggest your contact the mod_perl
or PHP dev teams with *precise* information (see the SUPPORT file in the
mod_perl documentation).
> Meanwhile, I would like to take your advice and try
>to set up 2 servers. I have configured Apache w/
> --enable-module=proxy
> --enable-shared=proxy
>But I am not quite sure what to do next. I have
>looked at the link you suggested before. I don't know
>where to look for proxy servers, or conceptionally
>what it means in regards to multiple servers. Please
>advise. Thanks.
The proxy technique is one used very frequently with mod_perl. You put a
lightweight Apache with mod_proxy at the front end, which clients connect
to, then this server forwards requests for your mod_perl handlers to the
dedicated mod_perl httpd that serves these requests. This method can then
be extended to having separate application servers, for example for PHP or JSP.
The Guide discusses this in great detail: look at "Real World Scenarios":
http://perl.apache.org/guide/scenario.html
I suggest you read this many times, and try to understand the point about
it and how it's done. It might seem weird at first, but I can assure you
it's a great technique.
--
Per Einar Ellefsen
per.einar@skynet.be
RE: AddModule mod_perl.c
Posted by John Kolvereid <ak...@yahoo.com>.
Hi Ian,
As w/ everything else mod_perl related the
Apachetoolbox didn't work either. I got an error w/
the installwatch.sh and it stopped me dead in my
tracks. Couldn't even download it from the net. Any
advice. Thanks.
John Kolvereid
--- Ian <ia...@internationalsportsagency.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> At 15:08 31.03.2002, John Kolvereid wrote:
> >Hi Per,
> > I realized right after I sent the note that
> >mod_perl, as CGI, won't handle ordinary HTML. But
> I
> >did learn later that mod_perl and PHP cannot
> co-exist
> >at present. I'm not sure but I think there is a
> small
> >glitch which can easily be overcome by someone
> >responsible for the PHP OR mod_perl source files.
>
> Actually; mod_perl and php can exist on the same
> apache build.
>
> ApacheToolbox is a wonderful little program for
> playing, tweaking,
> and dealing with apache modules and such.
> http://apachetoolbox.com/
>
> I have mod_perl, php, mod_frontpage, mod_throttle,
> and mod_python
> running peacefully on the same box.
>
> Ian
>
> - -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.8 for non-commercial use
> <http://www.pgp.com>
> Comment: Public Key at http://fed.ath.cx/pubkey.txt
>
>
iQA/AwUBPKd/yzPdoDQ8L/BAEQJGrQCg6qCp/9l6F7MJk51dHp+X/HfdiREAoNrJ
> leMaKzod7/9ogDxN4eQQpu0i
> =WgkX
> - -----END PGP SIGNATURE-----
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.8 for non-commercial use
> <http://www.pgp.com>
> Comment: Public Key at http://fed.ath.cx/pubkey.txt
>
>
iQA/AwUBPKl4kDPdoDQ8L/BAEQLVkQCg979r74XkaKBe594TKVQQd7FjlaQAn2Oq
> rVFw1/yoOVoZMoiqD8NJG0Vl
> =Bjm7
> -----END PGP SIGNATURE-----
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
RE: AddModule mod_perl.c
Posted by John Kolvereid <ak...@yahoo.com>.
Hi Ian,
Thanks for the encouragement. I wasn't sure if it
was worth the pursuit. Now that I know it is possible
I'll certainly trudge forth. I had looked at the site
you mentioned, ApacheToolbox, and tried to follow
their setup suggestions. They didn't work but maybe I
missed something. I am going to try again.
Thanks.
John Kolvereid
--- Ian <ia...@internationalsportsagency.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> At 15:08 31.03.2002, John Kolvereid wrote:
> >Hi Per,
> > I realized right after I sent the note that
> >mod_perl, as CGI, won't handle ordinary HTML. But
> I
> >did learn later that mod_perl and PHP cannot
> co-exist
> >at present. I'm not sure but I think there is a
> small
> >glitch which can easily be overcome by someone
> >responsible for the PHP OR mod_perl source files.
>
> Actually; mod_perl and php can exist on the same
> apache build.
>
> ApacheToolbox is a wonderful little program for
> playing, tweaking,
> and dealing with apache modules and such.
> http://apachetoolbox.com/
>
> I have mod_perl, php, mod_frontpage, mod_throttle,
> and mod_python
> running peacefully on the same box.
>
> Ian
>
> - -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.8 for non-commercial use
> <http://www.pgp.com>
> Comment: Public Key at http://fed.ath.cx/pubkey.txt
>
>
iQA/AwUBPKd/yzPdoDQ8L/BAEQJGrQCg6qCp/9l6F7MJk51dHp+X/HfdiREAoNrJ
> leMaKzod7/9ogDxN4eQQpu0i
> =WgkX
> - -----END PGP SIGNATURE-----
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 6.5.8 for non-commercial use
> <http://www.pgp.com>
> Comment: Public Key at http://fed.ath.cx/pubkey.txt
>
>
iQA/AwUBPKl4kDPdoDQ8L/BAEQLVkQCg979r74XkaKBe594TKVQQd7FjlaQAn2Oq
> rVFw1/yoOVoZMoiqD8NJG0Vl
> =Bjm7
> -----END PGP SIGNATURE-----
>
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
RE: AddModule mod_perl.c
Posted by Ian <ia...@internationalsportsagency.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 15:08 31.03.2002, John Kolvereid wrote:
>Hi Per,
> I realized right after I sent the note that
>mod_perl, as CGI, won't handle ordinary HTML. But I
>did learn later that mod_perl and PHP cannot co-exist
>at present. I'm not sure but I think there is a small
>glitch which can easily be overcome by someone
>responsible for the PHP OR mod_perl source files.
Actually; mod_perl and php can exist on the same apache build.
ApacheToolbox is a wonderful little program for playing, tweaking,
and dealing with apache modules and such. http://apachetoolbox.com/
I have mod_perl, php, mod_frontpage, mod_throttle, and mod_python
running peacefully on the same box.
Ian
- -----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use
<http://www.pgp.com>
Comment: Public Key at http://fed.ath.cx/pubkey.txt
iQA/AwUBPKd/yzPdoDQ8L/BAEQJGrQCg6qCp/9l6F7MJk51dHp+X/HfdiREAoNrJ
leMaKzod7/9ogDxN4eQQpu0i
=WgkX
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: Public Key at http://fed.ath.cx/pubkey.txt
iQA/AwUBPKl4kDPdoDQ8L/BAEQLVkQCg979r74XkaKBe594TKVQQd7FjlaQAn2Oq
rVFw1/yoOVoZMoiqD8NJG0Vl
=Bjm7
-----END PGP SIGNATURE-----
Re: Proxy servers (was Re: AddModule mod_perl.c)
Posted by John Kolvereid <ak...@yahoo.com>.
Hi Per (and Happy Easter),
I have no idea where the bug is, I just know that
when I load both services (mod_perl and PHP)
everything installs properly according to the
error_log w/ the single exception of:
[notice]Accept mutex: sysvsem (Default: sysvsem)
Then whenever I try to load any page in my browser I
get the msg:
'The document contained no data'
This could possibly be as simple as a configuration
problem within httpd.conf. I have no idea.
I will certainly try your suggestion about the
multiple servers. Thanks again.
John Kolvereid
--- Per Einar Ellefsen <pe...@skynet.be> wrote:
> At 15:08 31.03.2002, John Kolvereid wrote:
> >Hi Per,
> > I realized right after I sent the note that
> >mod_perl, as CGI, won't handle ordinary HTML. But
> I
> >did learn later that mod_perl and PHP cannot
> co-exist
> >at present. I'm not sure but I think there is a
> small
> >glitch which can easily be overcome by someone
> >responsible for the PHP OR mod_perl source files.
>
> If you think you know where to bug is, I suggest
> your contact the mod_perl
> or PHP dev teams with *precise* information (see the
> SUPPORT file in the
> mod_perl documentation).
>
> > Meanwhile, I would like to take your advice and
> try
> >to set up 2 servers. I have configured Apache w/
> > --enable-module=proxy
> > --enable-shared=proxy
> >But I am not quite sure what to do next. I have
> >looked at the link you suggested before. I don't
> know
> >where to look for proxy servers, or conceptionally
> >what it means in regards to multiple servers.
> Please
> >advise. Thanks.
>
> The proxy technique is one used very frequently with
> mod_perl. You put a
> lightweight Apache with mod_proxy at the front end,
> which clients connect
> to, then this server forwards requests for your
> mod_perl handlers to the
> dedicated mod_perl httpd that serves these requests.
> This method can then
> be extended to having separate application servers,
> for example for PHP or JSP.
>
> The Guide discusses this in great detail: look at
> "Real World Scenarios":
> http://perl.apache.org/guide/scenario.html
> I suggest you read this many times, and try to
> understand the point about
> it and how it's done. It might seem weird at first,
> but I can assure you
> it's a great technique.
>
>
> --
> Per Einar Ellefsen
> per.einar@skynet.be
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/