You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John Kolvereid <ak...@yahoo.com> on 2002/03/23 17:58:57 UTC

AddModule mod_perl.c

Hi,
   I am trying to install/configure mod_perl.  I think
it is installed but not quite sure.  According to the
mod_perl Reference Guide the line
     AddModule mod_perl.c
should be added to my httpd.conf, otherwise mod_perl
is not activated.  Yet when I include the line and try
to load any page into my browser I get the msg:
  The document contained no data
  Try again later, or contact the server's
administrator

If I comment out the line then all is well again.  Any
ideas.  Please advise.  Thanks.

      John Kolvereid

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

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/

Proxy servers (was Re: AddModule mod_perl.c)

Posted by Per Einar Ellefsen <pe...@skynet.be>.
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 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.
   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.

     John Kolvereid
--- Per Einar Ellefsen <pe...@skynet.be> wrote:
> At 22:46 30.03.2002, John Kolvereid wrote:
> >Hi Per,
> >    I did get my Apache to work w/ mod_perl only by
> >using the following configurations:
> 
> Great!
> 
> >My home page loads into the browser and when I try
> to
> >link to a .pl page in /perl/ where
> >      SetHandler  perl-script
> >      PerlHandle  Apache::Registry
> >it loads fine.  One problem is that when I try to
> link
> >to an ordinary html page in /perl/ I get an error:
> >      <head>
> >      <title>Mod_perl</title>
> >      </head>
> >
> >      <body>
> >      <center>Hello World</center>
> >      </body
> >Not quite sure why. (Any ideas).
> 
> Doesn't look like an error to me :)
> 
> Anyway, you can't load normal HTML files out of your
> /perl/ directory. This 
> is because mod_perl and Apache::Registry take over
> the whole handling of 
> requests for that directory, thereby thinking *any*
> file is an 
> Apache::Registry file.
> Your normal files (HTML, text, images...) should go
> into another part of 
> your document root.
> 
> 
> >    Now I guess I will begin the arduous task of
> trying
> >to install SSL, PHP, JSP, webapps additionally. 
> Any
> >advice.  Thanks.
> 
> Good luck... But I wouldn't install all that if you
> don't need it. It's 
> likely to cause you problems.
> One soluton might be to have different servers
> running those modules with a 
> proxy serving the requests.. See the Guide for tips
> ( 
> http://perl.apache.org/guide/ ).
> But it's good news you have mod_perl working Ok.
> 
> -- 
> Per Einar Ellefsen
> per.einar@skynet.be
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

Re: AddModule mod_perl.c

Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 22:46 30.03.2002, John Kolvereid wrote:
>Hi Per,
>    I did get my Apache to work w/ mod_perl only by
>using the following configurations:

Great!

>My home page loads into the browser and when I try to
>link to a .pl page in /perl/ where
>      SetHandler  perl-script
>      PerlHandle  Apache::Registry
>it loads fine.  One problem is that when I try to link
>to an ordinary html page in /perl/ I get an error:
>      <head>
>      <title>Mod_perl</title>
>      </head>
>
>      <body>
>      <center>Hello World</center>
>      </body
>Not quite sure why. (Any ideas).

Doesn't look like an error to me :)

Anyway, you can't load normal HTML files out of your /perl/ directory. This 
is because mod_perl and Apache::Registry take over the whole handling of 
requests for that directory, thereby thinking *any* file is an 
Apache::Registry file.
Your normal files (HTML, text, images...) should go into another part of 
your document root.


>    Now I guess I will begin the arduous task of trying
>to install SSL, PHP, JSP, webapps additionally.  Any
>advice.  Thanks.

Good luck... But I wouldn't install all that if you don't need it. It's 
likely to cause you problems.
One soluton might be to have different servers running those modules with a 
proxy serving the requests.. See the Guide for tips ( 
http://perl.apache.org/guide/ ).
But it's good news you have mod_perl working Ok.

-- 
Per Einar Ellefsen
per.einar@skynet.be



Re: AddModule mod_perl.c

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi all,

On Sat, 30 Mar 2002, Per Einar Ellefsen wrote:

> >It just doesn't work w/ mod_perl.  I am stumped and am
> >probably going to give up shortly - thank anyways.
> 
> That's because you haven't compiled it statically. Try starting with a 
> clean build: only mod_perl, build it statically, add only minimal extra 
> configuration, and test that.

Which is what I told him nearly two weeks ago.

I am probably going to give up shortly too.

73,
Ged.


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Per,
   I did get my Apache to work w/ mod_perl only by
using the following configurations:

mod_perl-1.26
  perl Makefile.PL \
	USE_APXS=1 \
	WITH_APXS=/usr/local/apache/bin/apxs \
	EVERYTHING=1
apache_1.3.23
  configure \
	--enable-module=info \
	--enable-module=status \
	--activate-module=src/modules/perl/libperl.a \
	--enable-module=perl \
	--prefix=/usr/local/apache

My home page loads into the browser and when I try to
link to a .pl page in /perl/ where
     SetHandler  perl-script
     PerlHandle  Apache::Registry
it loads fine.  One problem is that when I try to link
to an ordinary html page in /perl/ I get an error:
     <head>
     <title>Mod_perl</title>
     </head>

     <body>
     <center>Hello World</center>
     </body
Not quite sure why. (Any ideas).

   Now I guess I will begin the arduous task of trying
to install SSL, PHP, JSP, webapps additionally.  Any
advice.  Thanks.

         John Kolvereid


--- Per Einar Ellefsen <pe...@skynet.be> wrote:
> At 12:32 30.03.2002, John Kolvereid wrote:
> >Hi Perrin,
> >    When I get rid of the LoadModule line I can't
> load
> >Apache - it complains of <Perl>.  Also the hello.pl
> >does work w/ plain CGI-Perl I tried that right
> away.
> >It just doesn't work w/ mod_perl.  I am stumped and
> am
> >probably going to give up shortly - thank anyways.
> 
> That's because you haven't compiled it statically.
> Try starting with a 
> clean build: only mod_perl, build it statically, add
> only minimal extra 
> configuration, and test that.
> 
> 
> >--- Perrin Harkins <pe...@elem.com> wrote:
> > > Sorry you're having so much trouble with the
> > > install.  It goes pretty
> > > smoothly for most people, but you are
> complicating
> > > things a bit by
> > > putting PHP and SSL in the mix on your first
> try.
> > >
> > > >    Perrin, I have no idea if DSO is still
> involved
> > >
> > > Apache will not build DSO unless you tell it to.
> > >
> > > Your build routine looks fine to me.  I do the
> same
> > > except I don't
> > > usually build in mod_ssl, and it works.
> > >
> > > >    After I install the apache server I check
> the
> > > > httpd.conf.  In it are 2 key lines:
> > > >
> > > >       LoadModule perl_module 
> libexec/libperl.so
> > > >       AddModule mod_perl.c
> > >
> > > Get rid of your old conf file.  You don't want
> any
> > > of that
> > > LoadModule/AddModule junk at all in a static
> server.
> > >  That's DSO-only.
> > > (Anyone know if mod_ssl somehow forces you to
> use
> > > DSO?)
> > >
> > > > However, when I try to browse my hello.pl
> > > > file (from Apache Modules w/ Perl & C, pp
> 42-4) it
> > > > displays it as text rather than an html page.
> > > It's as
> > > > if the Options ExecCGI were not applied.
> > >
> > > That script should work under CGI as well.  Does
> it?
> > >  Did you remember
> > > to make it executable?
> > >
> > > I'm afraid I'm not that much help with install
> > > problems because I just
> > > haven't had any of my own to deal with.  You can
> try
> > > using Apache
> > > Toolbox to do the build.  It's supposed to make
> this
> > > stuff easier.  If
> > > it seems hopeless, you could always check out
> > > SpeedyCGI, which gives a
> > > similar speedup for perl CGI scripts bu does not
> > > require apache to be
> > > recompiled.  It doesn't give you access to the
> full
> > > range of mod_perl
> > > tools, but it may be all you need in this case.
> > >
> > > - Perrin
> > >
> > >
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Greetings - send holiday greetings for
> Easter, Passover
> >http://greetings.yahoo.com/
> 
> -- 
> Per Einar Ellefsen
> per.einar@skynet.be
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

Re: AddModule mod_perl.c

Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 12:32 30.03.2002, John Kolvereid wrote:
>Hi Perrin,
>    When I get rid of the LoadModule line I can't load
>Apache - it complains of <Perl>.  Also the hello.pl
>does work w/ plain CGI-Perl I tried that right away.
>It just doesn't work w/ mod_perl.  I am stumped and am
>probably going to give up shortly - thank anyways.

That's because you haven't compiled it statically. Try starting with a 
clean build: only mod_perl, build it statically, add only minimal extra 
configuration, and test that.


>--- Perrin Harkins <pe...@elem.com> wrote:
> > Sorry you're having so much trouble with the
> > install.  It goes pretty
> > smoothly for most people, but you are complicating
> > things a bit by
> > putting PHP and SSL in the mix on your first try.
> >
> > >    Perrin, I have no idea if DSO is still involved
> >
> > Apache will not build DSO unless you tell it to.
> >
> > Your build routine looks fine to me.  I do the same
> > except I don't
> > usually build in mod_ssl, and it works.
> >
> > >    After I install the apache server I check the
> > > httpd.conf.  In it are 2 key lines:
> > >
> > >       LoadModule perl_module  libexec/libperl.so
> > >       AddModule mod_perl.c
> >
> > Get rid of your old conf file.  You don't want any
> > of that
> > LoadModule/AddModule junk at all in a static server.
> >  That's DSO-only.
> > (Anyone know if mod_ssl somehow forces you to use
> > DSO?)
> >
> > > However, when I try to browse my hello.pl
> > > file (from Apache Modules w/ Perl & C, pp 42-4) it
> > > displays it as text rather than an html page.
> > It's as
> > > if the Options ExecCGI were not applied.
> >
> > That script should work under CGI as well.  Does it?
> >  Did you remember
> > to make it executable?
> >
> > I'm afraid I'm not that much help with install
> > problems because I just
> > haven't had any of my own to deal with.  You can try
> > using Apache
> > Toolbox to do the build.  It's supposed to make this
> > stuff easier.  If
> > it seems hopeless, you could always check out
> > SpeedyCGI, which gives a
> > similar speedup for perl CGI scripts bu does not
> > require apache to be
> > recompiled.  It doesn't give you access to the full
> > range of mod_perl
> > tools, but it may be all you need in this case.
> >
> > - Perrin
> >
> >
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Greetings - send holiday greetings for Easter, Passover
>http://greetings.yahoo.com/

-- 
Per Einar Ellefsen
per.einar@skynet.be


Re: AddModule mod_perl.c

Posted by ___cliff rayman___ <cl...@genwax.com>.
Perrin Harkins wrote:

> (Anyone know if mod_ssl somehow forces you to use DSO?)

it doesn't force you to use DSO.

i recently built a new server set-up using mod_proxy/mod_ssl
on the front end, and two different back ends, one with mod_perl,
and the other with mod_php.  the server is set-up to handle virtual
hosts on the front-end and on the mod_perl back end.  i could
have easily added virtual hosting for the mod_php backend,
but i am only running some canned software for intranet use,
so it was unnecessary.

i did this for a few reasons:
1 ) i don't have to recompile everything if there is a bug found in any
of the independent modules ( but i have to recompile everything to upgrade
apache.  :-(  )
2) i think the overall memory footprint will be smaller.
3) each of the separate servers is simpler and therefore less error prone.
4) i get the standard advantages when using a proxy in front of mod_perl.

i have done some initial testing without any problems.  i need to some more
stress testing and then put it in production before fully recommending this
set-up to others.

--
___cliff rayman___cliff@genwax.com___http://www.genwax.com/



Re: AddModule mod_perl.c

Posted by jon schatz <jo...@divisionbyzero.com>.
On Thu, 2002-03-28 at 00:00, Perrin Harkins wrote:
> I'm afraid I'm not that much help with install problems because I just
> haven't had any of my own to deal with.  You can try using Apache
> Toolbox to do the build.  It's supposed to make this stuff easier. 

also check this out ("Apache Compile HOWTO"). Walks you through
compiling apache + mod_perl + mod_ssl + php + just about everything else
you need. i keep it bookmarked because i always forget the openssl
commands to generate a self-signed certificate.

http://www.delouw.ch/linux/apache.phtml

-jon

-- 
jon@divisionbyzero.com || www.divisionbyzero.com
gpg key: www.divisionbyzero.com/pubkey.asc
think i have a virus? www.divisionbyzero.com/pgp.html
"You are in a twisty little maze of Sendmail rules, all confusing." 

Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Perrin,
   When I get rid of the LoadModule line I can't load
Apache - it complains of <Perl>.  Also the hello.pl
does work w/ plain CGI-Perl I tried that right away. 
It just doesn't work w/ mod_perl.  I am stumped and am
probably going to give up shortly - thank anyways.

    John Kolvereid

--- Perrin Harkins <pe...@elem.com> wrote:
> Sorry you're having so much trouble with the
> install.  It goes pretty
> smoothly for most people, but you are complicating
> things a bit by
> putting PHP and SSL in the mix on your first try.
> 
> >    Perrin, I have no idea if DSO is still involved
> 
> Apache will not build DSO unless you tell it to.
> 
> Your build routine looks fine to me.  I do the same
> except I don't
> usually build in mod_ssl, and it works.
> 
> >    After I install the apache server I check the
> > httpd.conf.  In it are 2 key lines:
> > 
> >       LoadModule perl_module  libexec/libperl.so
> >       AddModule mod_perl.c
> 
> Get rid of your old conf file.  You don't want any
> of that
> LoadModule/AddModule junk at all in a static server.
>  That's DSO-only. 
> (Anyone know if mod_ssl somehow forces you to use
> DSO?)
> 
> > However, when I try to browse my hello.pl
> > file (from Apache Modules w/ Perl & C, pp 42-4) it
> > displays it as text rather than an html page. 
> It's as
> > if the Options ExecCGI were not applied.
> 
> That script should work under CGI as well.  Does it?
>  Did you remember
> to make it executable?
> 
> I'm afraid I'm not that much help with install
> problems because I just
> haven't had any of my own to deal with.  You can try
> using Apache
> Toolbox to do the build.  It's supposed to make this
> stuff easier.  If
> it seems hopeless, you could always check out
> SpeedyCGI, which gives a
> similar speedup for perl CGI scripts bu does not
> require apache to be
> recompiled.  It doesn't give you access to the full
> range of mod_perl
> tools, but it may be all you need in this case.
> 
> - Perrin
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

Re: AddModule mod_perl.c

Posted by Perrin Harkins <pe...@elem.com>.
Sorry you're having so much trouble with the install.  It goes pretty
smoothly for most people, but you are complicating things a bit by
putting PHP and SSL in the mix on your first try.

>    Perrin, I have no idea if DSO is still involved

Apache will not build DSO unless you tell it to.

Your build routine looks fine to me.  I do the same except I don't
usually build in mod_ssl, and it works.

>    After I install the apache server I check the
> httpd.conf.  In it are 2 key lines:
> 
>       LoadModule perl_module  libexec/libperl.so
>       AddModule mod_perl.c

Get rid of your old conf file.  You don't want any of that
LoadModule/AddModule junk at all in a static server.  That's DSO-only. 
(Anyone know if mod_ssl somehow forces you to use DSO?)

> However, when I try to browse my hello.pl
> file (from Apache Modules w/ Perl & C, pp 42-4) it
> displays it as text rather than an html page.  It's as
> if the Options ExecCGI were not applied.

That script should work under CGI as well.  Does it?  Did you remember
to make it executable?

I'm afraid I'm not that much help with install problems because I just
haven't had any of my own to deal with.  You can try using Apache
Toolbox to do the build.  It's supposed to make this stuff easier.  If
it seems hopeless, you could always check out SpeedyCGI, which gives a
similar speedup for perl CGI scripts bu does not require apache to be
recompiled.  It doesn't give you access to the full range of mod_perl
tools, but it may be all you need in this case.

- Perrin



Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Perrin, Ged and Stas,
   Thanks for responding to my problem.  Fact is I am
the administrator of our server which has an Apache
web server w/ ssl and php.  I am also the programmer
writing CGI perl scripts which interact w/ Oracle and
mySQL on our web site.  I thought it would reduce the
server's overhead if we could convert the CGI perl
scripts to something like mod_perl OR JSP.  JSP loaded
like a charm, mod_perl was anything but.  Problem w/
JSP is that I would have to convert all the scripts to
Java - not an undaunting task, but time-consuming.  I
would rather use mod_perl if it would co-operate.

   Perrin, I have no idea if DSO is still involved, 
it seemed to be one of the earlier attempts, and may
still be hanging around - not sure.  I think DSO is
the Unix equivalent to Windows dlls. I also think I
read that they are not as stable - not sure.

   Perhaps someone can look at the build I use when
trying to install mod_perl (v1.26) and Apache
(v1.3.23)
and tell me what I am doing wrong.  Here they are:

   bld.mod_perl
   ------------
  perl Makefile.PL \
  USE_APACI=1 \
  EVERYTHING=1 \
  DO_HTTPD=1 \
  SSL_BASE=/usr/local/ssl \
  APACHE_PREFIX=/usr/local/apache \
  APACHE_SRC=/home/ssl/apache_1.3.23 \
  APACI_ARGS=--enable-module=ssl,--enable-module=proxy
\
  APACI_ARGS=--enable-shares=ssl,--enable-shared=proxy
\
 
APACI_ARGS=--prefix=/usr/local/apache,--enable-module=rewrite


   bld.apache
   ----------

     SSL_BASE=../openssl-0.9.6b configure \
	--enable-module=ssl \
	--enable-module=proxy \
	--enable-module=info \
	--enable-module=status \
	--enable-shared=ssl \
	--enable-shared=proxy \
	--prefix=/usr/local/apache



   The steps I perform are as follows:

     /home/ssl/mod_perl-1.26
     1.  bld.mod_perl
     2.  make
     3.  make install
         note. I can't use make test because I don't
have LWP.

     /home/ssl/apache_1.3.23
     4.  make install


   After I install the apache server I check the
httpd.conf.  In it are 2 key lines:

      LoadModule perl_module  libexec/libperl.so
      AddModule mod_perl.c

If I leave them alone the when I try to bring up any
web page from the server on a browser I get the msg
(in a stand alone window):
    'The document contained no data'
and nothing appears on my browser.  However the
error_log indicates that mod_perl is indeed installed.
When I comment out the AddModule mod_perl.c line then
I can bring up web pages on my browser, but the
error_log indicates that mod_perl is NOT installed.

   The line
        Include conf/mod_perl.conf
is also contained in my httpd.conf, and it is

   mod_perl.conf
   -------------

    PerlRequire conf/mod_perl.pl
    PerlFreshRestart On

    <Location /hello/world>
      SetHandler  perl-script
      PerlHandler Apache::Hello
    </Location>

    Alias /perl/ /home/httpd/perl/
    PerlModule Apache::Registry
    <Location /perl>
      SetHandler  perl-script
      PerlHandler Apache::Registry
      PerlSendHeader On
      Options ExecCGI
    </Location>

This does not give any error that it cannot be read
and therefore I am led to believe that mod_perl IS
installed.  However, when I try to browse my hello.pl
file (from Apache Modules w/ Perl & C, pp 42-4) it
displays it as text rather than an html page.  It's as
if the Options ExecCGI were not applied.

   Ged, I had earlier tried to build mod_perl and
apache w/o ssl, and php  but I ran into an immediate
problem and gave up.  Before I began I mved the entire
web server to another location, the built it as if
from scratch using very simple builds.  The problem I
encountered was that I could not start apache.  I will
try it again by modifying the basic builds.

   I apologize for all the pleas for help but I don't
know where else to turn.  As I mentioned earlier, if I
cannot install it I might have to give up and switch
to JSP - that does work.  Quite frankly, I have been
reading so much stuff on the configuration of mod_perl
my head is beginning to spin out of control.

   Thanks again.

        John Kolvereid
--- Perrin Harkins <pe...@elem.com> wrote:
> Stas Bekman wrote:
> > Arh, I mean to use the hints how to get the core
> dump backtrace.
> 
> Hang on, this guy is just trying to do an install. 
> He shouldn't need to 
> troubleshoot at that low a level.
> 
> John, who built this server and why is it DSO?  If
> you have control of 
> this system, I would recommend that you simply start
> over and build 
> Apache/mod_perl statically, following the
> instructions that come in the 
> mod_perl package.  It completely avoids all of the
> AddModule business 
> that is getting you confused.
> 
> I've always avoided DSO like the plague, but if
> you're really determined 
> to use it your best bet is to let the mod_perl build
> script do the 
> LoadModule/AddModule stuff for you, which it will do
> if you tell it to 
> with the USE_DSO=1 flag.
> 
> - Perrin
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi Perrin,

On Wed, 27 Mar 2002, Perrin Harkins wrote:

> Stas Bekman wrote:
> > Arh, I mean to use the hints how to get the core dump backtrace.
> 
> Hang on, this guy is just trying to do an install.  He shouldn't need
> to troubleshoot at that low a level.

Quite right Perrin, but I'm afraid we're having a little trouble
communicating with Mr. Kolvereid.  Here is one of several messages
which I sent to him last week.

73,
Ged.
----------------------------------------------------------------------
>From ged@www2.jubileegroup.co.uk Wed Mar 27 19:51:14 2002
Date: Mon, 18 Mar 2002 00:45:49 +0000 (GMT)
From: Ged Haywood <ge...@www2.jubileegroup.co.uk>
To: John Kolvereid <ak...@yahoo.com>
Cc: mod_perl Mailing List <mo...@perl.apache.org>
Subject: Re: Trouble w/ LWP during mod_perl install

Hi there,

On Sun, 17 Mar 2002, John Kolvereid wrote:

>   In order to try and install mod_perl-1.26 in RedHat
> 6.2 w/ Apache 1.3.22 I, as ROOT, run the following
> in my /home/ssl/mod_perl-1.26:
>      perl Makefile.PL \
[snip]
[snip]
> Then I try running
>      /usr/local/apache/bin/apachectl startssl

I think you're getting confused with too many Apache modules.  Try to
build without ssl to begin with, so that you can check that what
you're doing for mod_perl is OK.

Please read the installation section of the Guide and follow the
instructions carefully.  You will see that it suggests that you do the
'make' and 'make test' steps NOT as root, then 'make install' as root.
It's not unknown for things to get a little screwy if you try to build
as root, and especially if sometimes you're logged in as root and
sometimes you're not.  It might be best if you delete the source trees
in /home/ssl/mod_perl-1.26 and /home/ssl/apache_1.3.22 and start
again, or start again in a new directory, say something like this:

$ cd /home/fred/src/apache_1.3.22/
$ tar xzvf .../apache_1.3.22.tar.gz
$ cd /home/fred/src/mod_perl-1.26/
$ tar xzvf .../mod_perl-1.26.tar.gz
$ cp makepl_args.mod_perl .
$ perl Makefile.PL
$ make
$ su
# make install
# ls -l /usr/local/sbin/httpd
... (Check here that the date and time of the binary look sensible:)
# /usr/local/sbin/httpd -f /usr/local/apache/conf/httpd.conf
# tail /usr/local/apache/logs/error_log
... (Check that Apache started and that it says it's a mod_perl Apache:)

The file makepl_args.mod_perl is below, and there is a sample in the
mod_perl/eg directory too.  You might want to adjust these a little to
suit your needs.  You can also put the file in the home directory of
the user who does 'make' but then you need to prefix the filename with
a dot, i.e. ".makepl_args.mod_perl".

>   Invalid command 'LoadModule', perhaps mis-spelled or
>   defined by a module not included in the server    
> configuration
>   could not locate Module SSL (line 206 httpd.conf)
> 
> My only recourse is then to rebuild Apache w/o mod_perl.

This error has nothing to do with mod_perl.  You have a 'loadmodule'
directive in httpd.conf but you don't have mod_so.c compiled into the
Apache which you are trying to start using that httpd.conf - as you
will see if you will get the output of 'httpd -l' as I asked you to do
in my previous message.  Try to understand what you're doing, it's not
really that complicated if you are methodical.  You are going to build
a binary called 'httpd' and you can run it without 'apachectl'.  This
is a script that does some other stuff too.  You can try for example
'apachectl configtest'.  'apachectl' is created by 'make install'.
You need to check that it is starting the right Apache, i.e. the one
you just built!  Be careful, there may be several of them (both httpd
and apachectl) kicking around if you have been trying lots of builds
in desperation...

> I am having a great deal of difficulty installing mod_perl.  I am
> not sure it is worth it.

It's worth it but you will have to do quite a bit of reading and it
won't all happen overnight.  Your difficulties at the moment do not
seem to stem primarily from mod_perl itself.

>   I have been reading installation excerpts frm various sources

...and then you have to do what it says in the things you've read. :)

> w/ Perl and C', and the internet CPAN sites.  My build in

?  Your message seems to have been truncated here.

73,
Ged.

8<----------------------------------------------------------------------
USE_APACI=1
APACHE_PREFIX=/usr/local
APACHE_SRC=../apache_1.3.12/src
DO_HTTPD=1
EVERYTHING=1
ALL_HOOKS=1
PERL_SSI=1
PERL_SECTIONS=1
APACI_ARGS=--sbindir=/usr/local/sbin/
APACI_ARGS=--sysconfdir=/usr/local/apache/conf
APACI_ARGS=--runtimedir=/usr/local/apache/run
APACI_ARGS=--logfiledir=/usr/local/apache/logs
8<----------------------------------------------------------------------



Re: AddModule mod_perl.c

Posted by Perrin Harkins <pe...@elem.com>.
Stas Bekman wrote:
> Arh, I mean to use the hints how to get the core dump backtrace.

Hang on, this guy is just trying to do an install.  He shouldn't need to 
troubleshoot at that low a level.

John, who built this server and why is it DSO?  If you have control of 
this system, I would recommend that you simply start over and build 
Apache/mod_perl statically, following the instructions that come in the 
mod_perl package.  It completely avoids all of the AddModule business 
that is getting you confused.

I've always avoided DSO like the plague, but if you're really determined 
to use it your best bet is to let the mod_perl build script do the 
LoadModule/AddModule stuff for you, which it will do if you tell it to 
with the USE_DSO=1 flag.

- Perrin


Re: AddModule mod_perl.c

Posted by Stas Bekman <st...@stason.org>.
John Kolvereid wrote:
> Hi Stas,
>    I did peruse the SUPPORT file.  As far as I can
> tell I have tried everything there.  Honestly, I have
> no idea what to try next.  The configuration problem
> seems to have stopped me dead in my tracks for using
> mod_perl.  Meanwhile, I am resorting to plain
> CGI-perl. At least that has always worked for me.
> 
>   As always, I would appreciate any more help I can
> get.  Thanks.
> 
> 
> --- Stas Bekman <st...@stason.org> wrote:
> 
>>John Kolvereid wrote:
>>
>>>Hi Per,
>>>--- Per Einar Ellefsen <pe...@skynet.be>
>>
>>wrote:
>>
>>>>At 00:47 25.03.2002, John Kolvereid wrote:
>>>>
>>>>
>>>>>Hi Per,
>>>>>  I get the msg:
>>>>>     'The document contained no data'
>>>>>when I try to load my home.html from my server
>>>>
>>>>using
>>>>
>>>>
>>>>>my browser.  When I comment out the AddModule
>>>>>mod_perl.c
>>>>>then my home page appears.
>>>>
>>>>Check your error log. It might have interesting
>>>>information in it.
>>>
>>>
>>>  When I get this msg the error log has the msg:
>>>  [notice] child pid # exit signal Segmentation
>>
>>fault 
>>
>>>       (11)
>>
>>See the SUPPORT file in the mod_perl source distro
>>to figure out what to 
>>do next.

Arh, I mean to use the hints how to get the core dump backtrace.
I see that your env doesn't let coredumps, make it dump core files
and then get the backtrace and post it here. the SUPPORT file
explains how to do that.

See this post on how to get the core file dumped, when you get a segfault:
http://marc.theaimsgroup.com/?l=apache-modperl&m=99689372216856&w=2


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Stas,
   I did peruse the SUPPORT file.  As far as I can
tell I have tried everything there.  Honestly, I have
no idea what to try next.  The configuration problem
seems to have stopped me dead in my tracks for using
mod_perl.  Meanwhile, I am resorting to plain
CGI-perl. At least that has always worked for me.

  As always, I would appreciate any more help I can
get.  Thanks.


--- Stas Bekman <st...@stason.org> wrote:
> John Kolvereid wrote:
> > Hi Per,
> > --- Per Einar Ellefsen <pe...@skynet.be>
> wrote:
> > 
> >>At 00:47 25.03.2002, John Kolvereid wrote:
> >>
> >>>Hi Per,
> >>>   I get the msg:
> >>>      'The document contained no data'
> >>>when I try to load my home.html from my server
> >>
> >>using
> >>
> >>>my browser.  When I comment out the AddModule
> >>>mod_perl.c
> >>>then my home page appears.
> >>
> >>Check your error log. It might have interesting
> >>information in it.
> > 
> > 
> >   When I get this msg the error log has the msg:
> >   [notice] child pid # exit signal Segmentation
> fault 
> >        (11)
> 
> See the SUPPORT file in the mod_perl source distro
> to figure out what to 
> do next.
> 
> -- 
> 
> 
>
__________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/     mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org  
> http://ticketmaster.com
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Stas Bekman <st...@stason.org>.
John Kolvereid wrote:
> Hi Per,
> --- Per Einar Ellefsen <pe...@skynet.be> wrote:
> 
>>At 00:47 25.03.2002, John Kolvereid wrote:
>>
>>>Hi Per,
>>>   I get the msg:
>>>      'The document contained no data'
>>>when I try to load my home.html from my server
>>
>>using
>>
>>>my browser.  When I comment out the AddModule
>>>mod_perl.c
>>>then my home page appears.
>>
>>Check your error log. It might have interesting
>>information in it.
> 
> 
>   When I get this msg the error log has the msg:
>   [notice] child pid # exit signal Segmentation fault 
>        (11)

See the SUPPORT file in the mod_perl source distro to figure out what to 
do next.

-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Per,
--- Per Einar Ellefsen <pe...@skynet.be> wrote:
> At 00:47 25.03.2002, John Kolvereid wrote:
> >Hi Per,
> >    I get the msg:
> >       'The document contained no data'
> >when I try to load my home.html from my server
> using
> >my browser.  When I comment out the AddModule
> >mod_perl.c
> >then my home page appears.
> 
> Check your error log. It might have interesting
> information in it.

  When I get this msg the error log has the msg:
  [notice] child pid # exit signal Segmentation fault 
       (11)

> 
> 
> >    I am including my httpd for any advise:
> >
> >relevant portions of httpd.conf
> >-------------------------------
> ><IfDefine SSL>
> >LoadModule ssl_module         libexec/libssl.so
> >LoadModule php4_module        libexec/libphp4.so
> >LoadModule webapp_module      libexec/mod_webapp.so
> >LoadModule perl_module        libexec/libperl.so
> ></IfDefine>
> 
> Lots of modules you're loading there. I've heard
> problems with combining 
> PHP and mod_perl before, I don't know if it's fixed
> now, but maybe you 
> should try with only mod_perl loaded to see if that
> fixes your problem: if 
> it does, it's not mod_perl's fault.
> 

  I commented out the PHP Load & Add Modules
  Upon initialization I got the error log msg:
  [notice] Accept mytex: sysvsem (Default: sysvsem)
  and when I tried to load my home page from the      
     browser I got the same error as before

> 
> ><Ifmodule mod_perl.c>
> >   Include conf/mod_perl.conf
> ></Ifmodule>
> ><Perl>
> ></Perl>
> >
> >ClearModuleList
> >#AddModule mod_perl.c
> 
> Maybe this should go before the <Ifmodule>
> directive.. I'm not sure if 
> it'll change anything.
> 

  Not really, except when I commented out the
    AddModule mod_perl.c
  it complained of an 'Invalid command '<Perl>'

> 
> 
> >mod_perl.conf
> >-------------
> >conf/mod_perl.pl
> 
> ?? I think you either forgot to copy something off
> there or but .pl instead 
> of .conf....?
> 

  The missing line is
    PerlRequire conf/mod_perl.pl
  Sorry about that.

> >PerlFreshRestart On
> >
> ><Location /hello/world>
> >   SetHandler  perl-script
> >   PerlHandler Apache::Hello
> ></Location>
> 
> You need PerlModule Apache::Hello before PerlHandler
> Apache::Hello, 
> otherwise Apache::Hello doesn't get loaded.
> 
  I don't understand what you mean here.  Do I have to
reference the file I will be trying to load from the
browser.  I assume it is just like Perl-CGI in the
cgi-bin directory.  Just add a file and address it.

> 
> >Alias /perl/ /home/httpd/perl/
> >PerlModule Apache::Registry
> ><Location /perl>
> >   SetHandler  perl-script
> >   PerlHandler Apache::Registry
> >   PerlSendHeader On
> >   Options ExecCGI
> ></Location>
> 
> This looks good.
> 
> 
> >/home/httpd/perl/hello.pl
> >-------------------------
> >#!/usr/local/perl
> >
> >print "Content-type: text/html\n\n";
> >
> >print <<END;
> ><head>
> ><title>Mod_perl
> ></title>
> ></head>
> >
> ><body>
> ><center>Mod-Perl</center>
> ></body>
> >END
> >
> >Also, when I try to load the page
> /odin/perl/hello.pl
> >(/odin is my server) the page displays as text
> only,
> >not as an html page.
> 
> I don't understand what you mean by /odin... You
> mean you're typing 
> http://odin/perl/... in your browser, or something?
> 
  Odin is the reference, as in the host file, for my
server = or.odin.com

> Maybe you should check your error log, if
> something's wrong it might have 
> an indication.
> 
> -- 
> Per Einar Ellefsen
> per.einar@skynet.be
> 

  Any further insight would be greatly appreciated.  I
am at a loss - obviously.  Thanks.

      John Kolvereid

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 00:47 25.03.2002, John Kolvereid wrote:
>Hi Per,
>    I get the msg:
>       'The document contained no data'
>when I try to load my home.html from my server using
>my browser.  When I comment out the AddModule
>mod_perl.c
>then my home page appears.

Check your error log. It might have interesting information in it.


>    I am including my httpd for any advise:
>
>relevant portions of httpd.conf
>-------------------------------
><IfDefine SSL>
>LoadModule ssl_module         libexec/libssl.so
>LoadModule php4_module        libexec/libphp4.so
>LoadModule webapp_module      libexec/mod_webapp.so
>LoadModule perl_module        libexec/libperl.so
></IfDefine>

Lots of modules you're loading there. I've heard problems with combining 
PHP and mod_perl before, I don't know if it's fixed now, but maybe you 
should try with only mod_perl loaded to see if that fixes your problem: if 
it does, it's not mod_perl's fault.


><Ifmodule mod_perl.c>
>   Include conf/mod_perl.conf
></Ifmodule>
><Perl>
></Perl>
>
>ClearModuleList
>#AddModule mod_perl.c

Maybe this should go before the <Ifmodule> directive.. I'm not sure if 
it'll change anything.



>mod_perl.conf
>-------------
>conf/mod_perl.pl

?? I think you either forgot to copy something off there or but .pl instead 
of .conf....?

>PerlFreshRestart On
>
><Location /hello/world>
>   SetHandler  perl-script
>   PerlHandler Apache::Hello
></Location>

You need PerlModule Apache::Hello before PerlHandler Apache::Hello, 
otherwise Apache::Hello doesn't get loaded.


>Alias /perl/ /home/httpd/perl/
>PerlModule Apache::Registry
><Location /perl>
>   SetHandler  perl-script
>   PerlHandler Apache::Registry
>   PerlSendHeader On
>   Options ExecCGI
></Location>

This looks good.


>/home/httpd/perl/hello.pl
>-------------------------
>#!/usr/local/perl
>
>print "Content-type: text/html\n\n";
>
>print <<END;
><head>
><title>Mod_perl
></title>
></head>
>
><body>
><center>Mod-Perl</center>
></body>
>END
>
>Also, when I try to load the page /odin/perl/hello.pl
>(/odin is my server) the page displays as text only,
>not as an html page.

I don't understand what you mean by /odin... You mean you're typing 
http://odin/perl/... in your browser, or something?

Maybe you should check your error log, if something's wrong it might have 
an indication.

-- 
Per Einar Ellefsen
per.einar@skynet.be


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Per,
   I get the msg:
      'The document contained no data'
when I try to load my home.html from my server using
my browser.  When I comment out the AddModule
mod_perl.c
then my home page appears.

   I am including my httpd for any advise:

relevant portions of httpd.conf
-------------------------------
<IfDefine SSL>
LoadModule ssl_module         libexec/libssl.so
LoadModule php4_module        libexec/libphp4.so
LoadModule webapp_module      libexec/mod_webapp.so
LoadModule perl_module        libexec/libperl.so
</IfDefine>

<Ifmodule mod_perl.c>
  Include conf/mod_perl.conf
</Ifmodule>
<Perl>
</Perl>

ClearModuleList
#AddModule mod_perl.c

mod_perl.conf
-------------
conf/mod_perl.pl
PerlFreshRestart On

<Location /hello/world>
  SetHandler  perl-script
  PerlHandler Apache::Hello
</Location>

Alias /perl/ /home/httpd/perl/
PerlModule Apache::Registry
<Location /perl>
  SetHandler  perl-script
  PerlHandler Apache::Registry
  PerlSendHeader On
  Options ExecCGI
</Location>

/home/httpd/perl/hello.pl
-------------------------
#!/usr/local/perl

print "Content-type: text/html\n\n";

print <<END;
<head>
<title>Mod_perl
</title>
</head>

<body>
<center>Mod-Perl</center>
</body>
END

Also, when I try to load the page /odin/perl/hello.pl
(/odin is my server) the page displays as text only,
not as an html page.

    Any advice would be greatly appreciated.  Thanks.

        John Kolvereid


--- Per Einar Ellefsen <pe...@skynet.be> wrote:
> At 23:31 24.03.2002, John Kolvereid wrote:
> >Hi Dan,
> >   You are correct when you refer to
> >    'this somewhat convoluted load/clear/add'
> >My httpd.conf has
> >     LoadModule perl_module  libexec/libperl.so
> >     AddModule mod_perl.c
> >When I leave alone and check the error_log, Apache
> AND
> >mod_perl are loaded.  However, I cannot view any
> web
> >pages; instead I get the msg:
> >    'The document contained no data'
> >(what document I do not know)
> >
> >When I comment out the AddModule I can view all my
> web
> >pages, but the error_log claims that only Apache is
> 
> What do you mean by 'view all your web pages'? What
> are these web pages: 
> perl programs, or static content?
> 
> >loaded - mod_perl is not.  This may be fine, it may
> be
> >a DSO (I don't know) but I cannot view a .pl file
> as
> >outlined in Apache Modules w/ Perl & C, pp 41-45. 
> It
> >displays text only, as if the Options ExCGI were
> not
> >present.
> >
> >    I am trying to pay close attention to the guide
> and
> >all the other literature on the subject. 
> Obviously,
> >it the installation works correctly the first time,
> >then it is understandable,  otherwise, (I think) it
> is
> >very confusing.
> 
> There must be something wrong with your
> configuration: could you please 
> post your httpd.conf here so taht we can see if
> you're doing anything wrong?
> (only post the most relevant parts, so as not to get
> a too large entry, but 
> please post *all* the relevant parts, as there might
> be some small detail 
> making it fail).
> 
> >--- Dan Riley <ds...@mail.lns.cornell.edu> wrote:
> > > Ged Haywood <ge...@www2.jubileegroup.co.uk>
> writes:
> > > > > According to the mod_perl Reference Guide
> the
> > > line
> > > > >      AddModule mod_perl.c
> > > > > should be added to my httpd.conf, otherwise
> > > mod_perl
> > > > > is not activated.
> > > >
> > > > I think you'd better have a more careful look
> at
> > > that Guide.  You only
> > > > need that in your config if you have mod_perl
> > > built as a DSO (Dynamic
> > > > Shared Object) which means that Apache starts
> > > without trhe mod_perl
> > > > module and then loads it later when it reads
> the
> > > line
> > > >
> > > >       AddModule mod_perl.c
> > > >
> > > > in httpd.conf.
> > >
> > > I think you've confused LoadModule and
> AddModule.
> > > If you follow the
> > > recommended apache configuration, which does all
> the
> > > LoadModules
> > > followed by a ClearModuleList and a bunch of
> > > AddModules, you don't
> > > need the LoadModule for mod_perl (since it is
> built
> > > in), but you do
> > > need the AddModule since *all* the module
> entries
> > > get cleared by the
> > > ClearModuleList.
> > >
> > > I believe the point of this somewhat convoluted
> > > load/clear/add
> > > procedure is for the static modules to end up in
> the
> > > right spots in
> > > the module list relative to all the DSOs, rather
> > > than all bunched up
> > > at one end, since the order does matter (a lot).
> > > --
> > > Dan Riley
> > > dsr@mail.lns.cornell.edu
> > >  "Mr. Ellison is presently the sole member of
> the
> > > Plan Committee.  The
> > >   Plan Committee did not meet during fiscal year
> > > 2001, and during that
> > >        same period, acted 46 times by unanimous
> > > written consent."
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Movies - coverage of the 74th Academy
> Awards�
> >http://movies.yahoo.com/
> 
> -- 
> Per Einar Ellefsen
> per.einar@skynet.be
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Per Einar Ellefsen <pe...@skynet.be>.
At 23:31 24.03.2002, John Kolvereid wrote:
>Hi Dan,
>   You are correct when you refer to
>    'this somewhat convoluted load/clear/add'
>My httpd.conf has
>     LoadModule perl_module  libexec/libperl.so
>     AddModule mod_perl.c
>When I leave alone and check the error_log, Apache AND
>mod_perl are loaded.  However, I cannot view any web
>pages; instead I get the msg:
>    'The document contained no data'
>(what document I do not know)
>
>When I comment out the AddModule I can view all my web
>pages, but the error_log claims that only Apache is

What do you mean by 'view all your web pages'? What are these web pages: 
perl programs, or static content?

>loaded - mod_perl is not.  This may be fine, it may be
>a DSO (I don't know) but I cannot view a .pl file as
>outlined in Apache Modules w/ Perl & C, pp 41-45.  It
>displays text only, as if the Options ExCGI were not
>present.
>
>    I am trying to pay close attention to the guide and
>all the other literature on the subject.  Obviously,
>it the installation works correctly the first time,
>then it is understandable,  otherwise, (I think) it is
>very confusing.

There must be something wrong with your configuration: could you please 
post your httpd.conf here so taht we can see if you're doing anything wrong?
(only post the most relevant parts, so as not to get a too large entry, but 
please post *all* the relevant parts, as there might be some small detail 
making it fail).

>--- Dan Riley <ds...@mail.lns.cornell.edu> wrote:
> > Ged Haywood <ge...@www2.jubileegroup.co.uk> writes:
> > > > According to the mod_perl Reference Guide the
> > line
> > > >      AddModule mod_perl.c
> > > > should be added to my httpd.conf, otherwise
> > mod_perl
> > > > is not activated.
> > >
> > > I think you'd better have a more careful look at
> > that Guide.  You only
> > > need that in your config if you have mod_perl
> > built as a DSO (Dynamic
> > > Shared Object) which means that Apache starts
> > without trhe mod_perl
> > > module and then loads it later when it reads the
> > line
> > >
> > >       AddModule mod_perl.c
> > >
> > > in httpd.conf.
> >
> > I think you've confused LoadModule and AddModule.
> > If you follow the
> > recommended apache configuration, which does all the
> > LoadModules
> > followed by a ClearModuleList and a bunch of
> > AddModules, you don't
> > need the LoadModule for mod_perl (since it is built
> > in), but you do
> > need the AddModule since *all* the module entries
> > get cleared by the
> > ClearModuleList.
> >
> > I believe the point of this somewhat convoluted
> > load/clear/add
> > procedure is for the static modules to end up in the
> > right spots in
> > the module list relative to all the DSOs, rather
> > than all bunched up
> > at one end, since the order does matter (a lot).
> > --
> > Dan Riley
> > dsr@mail.lns.cornell.edu
> >  "Mr. Ellison is presently the sole member of the
> > Plan Committee.  The
> >   Plan Committee did not meet during fiscal year
> > 2001, and during that
> >        same period, acted 46 times by unanimous
> > written consent."
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Movies - coverage of the 74th Academy Awards®
>http://movies.yahoo.com/

-- 
Per Einar Ellefsen
per.einar@skynet.be


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Dan,
  You are correct when you refer to
   'this somewhat convoluted load/clear/add'
My httpd.conf has
    LoadModule perl_module  libexec/libperl.so
    AddModule mod_perl.c
When I leave alone and check the error_log, Apache AND
mod_perl are loaded.  However, I cannot view any web
pages; instead I get the msg:
   'The document contained no data'
(what document I do not know)

When I comment out the AddModule I can view all my web
pages, but the error_log claims that only Apache is
loaded - mod_perl is not.  This may be fine, it may be
a DSO (I don't know) but I cannot view a .pl file as
outlined in Apache Modules w/ Perl & C, pp 41-45.  It
displays text only, as if the Options ExCGI were not
present.

   I am trying to pay close attention to the guide and
all the other literature on the subject.  Obviously,
it the installation works correctly the first time,
then it is understandable,  otherwise, (I think) it is
very confusing.

       John Kolvereid
 
--- Dan Riley <ds...@mail.lns.cornell.edu> wrote:
> Ged Haywood <ge...@www2.jubileegroup.co.uk> writes:
> > > According to the mod_perl Reference Guide the
> line
> > >      AddModule mod_perl.c
> > > should be added to my httpd.conf, otherwise
> mod_perl
> > > is not activated.
> > 
> > I think you'd better have a more careful look at
> that Guide.  You only
> > need that in your config if you have mod_perl
> built as a DSO (Dynamic
> > Shared Object) which means that Apache starts
> without trhe mod_perl
> > module and then loads it later when it reads the
> line
> > 
> >       AddModule mod_perl.c
> > 
> > in httpd.conf.
> 
> I think you've confused LoadModule and AddModule. 
> If you follow the
> recommended apache configuration, which does all the
> LoadModules
> followed by a ClearModuleList and a bunch of
> AddModules, you don't
> need the LoadModule for mod_perl (since it is built
> in), but you do
> need the AddModule since *all* the module entries
> get cleared by the
> ClearModuleList.
> 
> I believe the point of this somewhat convoluted
> load/clear/add
> procedure is for the static modules to end up in the
> right spots in
> the module list relative to all the DSOs, rather
> than all bunched up
> at one end, since the order does matter (a lot).
> -- 
> Dan Riley                                        
> dsr@mail.lns.cornell.edu
>  "Mr. Ellison is presently the sole member of the
> Plan Committee.  The
>   Plan Committee did not meet during fiscal year
> 2001, and during that
>        same period, acted 46 times by unanimous
> written consent."


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Dan Riley <ds...@mail.lns.cornell.edu>.
Ged Haywood <ge...@www2.jubileegroup.co.uk> writes:
> > According to the mod_perl Reference Guide the line
> >      AddModule mod_perl.c
> > should be added to my httpd.conf, otherwise mod_perl
> > is not activated.
> 
> I think you'd better have a more careful look at that Guide.  You only
> need that in your config if you have mod_perl built as a DSO (Dynamic
> Shared Object) which means that Apache starts without trhe mod_perl
> module and then loads it later when it reads the line
> 
>       AddModule mod_perl.c
> 
> in httpd.conf.

I think you've confused LoadModule and AddModule.  If you follow the
recommended apache configuration, which does all the LoadModules
followed by a ClearModuleList and a bunch of AddModules, you don't
need the LoadModule for mod_perl (since it is built in), but you do
need the AddModule since *all* the module entries get cleared by the
ClearModuleList.

I believe the point of this somewhat convoluted load/clear/add
procedure is for the static modules to end up in the right spots in
the module list relative to all the DSOs, rather than all bunched up
at one end, since the order does matter (a lot).
-- 
Dan Riley                                         dsr@mail.lns.cornell.edu
 "Mr. Ellison is presently the sole member of the Plan Committee.  The
  Plan Committee did not meet during fiscal year 2001, and during that
       same period, acted 46 times by unanimous written consent."

Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Richard,
  It worked.  Thanks.
         John Kolvereid
--- Richard Dice <rd...@pobox.com> wrote:
> >   I know the guide is posted on line.  I would
> like to
> > get a copy on my server to save on traffic. 
> Moreover,
> > I don't want a PDF copy - not as friendly (to me).
> >   Exactly what is
> >      Pod::HtmlPsPdf
> > and how (and why) do I install it.  Thanks.
> 
> This is a module, available off of CPAN:
>     
>
http://www.cpan.org/modules/by-module/Pod/Pod-HtmlPsPdf-0.04.tar.gz
> 
> (Written by Stas, in fact!)
> 
> It allows you to create HTML, Ps (Postscript) and
> PDF documents given POD.
> 
> What is POD (or Pod)?  "Plain Old Documentation". 
> This is the native
> documentation format for Perl modules.  For any perl
> module you have
> installed on your system, you can read its
> documentation by the
> "perldoc MODULENAME" command.  The perldoc command
> will scan the module
> for its included POD, and then render the POD for
> your reading pleasure.
> 
> ----------------------
> 
> What is CPAN?
> 
> CPAN is the Comprehensive Perl Archive Network.  It
> is a vast collection
> of user-contributed Perl modules that cover a vast
> array of common (and
> not so common) tasks that you might wish to cover. 
> It will simplify
> your life greatly.
> 
> There is an installation procedure that you can
> follow that will allow
> you to take a module off of CPAN and put it on your
> computer.  There
> is documentation available on the CPAN web site,
> http://www.cpan.org/
> that you can read and learn and therefore allow you
> to install the
> modules.  (Usually it's not difficult to install a
> module -- you should
> usually be able to do it in 5 command lines, or less
> if you don't mind
> stringing a bunch of them together with "&&" logical
> joiners.)
> 
> There is a module available on CPAN called "CPAN"
> that, if you already
> have it installed on your system, can greatly ease
> your task of installing
> modules off of CPAN.  If you have it installed, I
> suggest you use it.
> If you don't have it installed, I suggest you
> install it and then use it
> to install all future modules.
> 
> ----------------------
> 
> How can you tell if you nave module Foo::Bar::Baz
> installed?
> 
>      perl -MFoo::Bar::Baz -e 'print
> "$Foo::Bar::Baz::VERSION\n";'
> 
> If you have the module installed, this command will
> tell you the version
> of the module you have installed.  If you don't have
> it installed, then
> it'll spew out a few lines regarding how
> Foo::Bar::Baz can't be found
> within the Perl module include path of your system.
> (called @INC)
> 
> Note that some CPAN modules -- *including*
> Pod::HtmlPsPdf" -- have
> *dependancies*.  Sometimes these dependancies are
> other Perl modules.
> (if so, then the CPAN module can automatically
> follow the depedancies
> and install the modules that are depended-upon and
> install them).
> Sometimes the dependancies depend on you having
> other *non* Perl programs
> (or libraries) installed on your system  If you try
> to install a Perl
> module that has one of these kinds of dependancies
> and you don't have
> the thing that is depended upon on your system, then
> the module
> installation attempt will fail and you will have to
> go and install
> that thing first before you try installing your Perl
> module again.
> *Pay attention* to what the installation error
> report says -- it should
> provide you with the information (or at least the
> clues) you need in
> order to successfully install the module.
> 
> ----------------------
> 
> How do you install pieces of software that aren't
> Perl that the
> random CPAN module that you're trying to install
> might need?
> 
> That depends on your operating system.  I use Debian
> GNU/Linux.
> Lots of people use RedHat based Linux systems.  And
> then there's
> Solaris.  And other Unices.  And (gasp!) Windows
> OSes.  Each one
> has a different way to approach this problem.
> 
> It also depends on the program / library in
> question.
> 
> I'll have to let you work on this part yourself for
> now, at least
> until you've put in a few hours of trying on your
> own and you can
> come back with a few specific questions. (i.e.  "I
> need to install
> the following, I tried doing the following, it
> didn't work, and
> here's the error message I'm getting.  My system
> setup is the following.
> What's going on?")
> 
> ----------------------
> 
> Another useful piece of information -- you can read
> the POD of a module
> without it already being installed on your machine! 
> You do this by
> going to www.cpan.org and looking info re: CPAN
> module documentation.
> There are several selections along these lines --
> pick one, check it out,
> see if it gives you what you want, and if not then
> check out another
> one.  Rinse, lather, repeat...
> 
> I suggest you check out the Pod::HtmlPsPdf
> documentation online using
> this technique.  Here's a direct URL, just because
> I'm such a nice
> guy...
>
http://theoryx5.uwinnipeg.ca/CPAN/data/Pod-HtmlPsPdf/Pod/HtmlPsPdf.html
> 
> ----------------------
> 
> Why am I going into so much detail?
> 
> Because it seems like you haven't done this kind of
> thing before.
> Note that the mod_perl installation itself (if you
> aren't using some
> packaged module like an RPM or DEB or something like
> that) includes
> a bunch of outside dependancies.
> 
> You'll always be faced with challenges when it comes
> to administering a
> Perl site of any degree of complexity, and that
> includes mod_perl.  But
> once you learn the ins and outs, it's really not so
> bad.  Be willing
> to learn.  That's the best advice I can give.
> 
> Cheers,
> Richard
> 
> -- 
>
----------------------------------------------------------------------------
>   Richard Dice * Personal 416 841 7365 * Fax 416 841
> 7364
>   ShadNet Creator * http://shadnet.shad.ca/ *
> rdice@shadnet.shad.ca
>   Occasional Writer, HotWired *
> http://www.hotwired.com/webmonkey/
>       "squeeze the world 'til it's small enough to
> join us heel to toe"
>           - jesus jones
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Richard Dice <rd...@pobox.com>.
>   I know the guide is posted on line.  I would like to
> get a copy on my server to save on traffic.  Moreover,
> I don't want a PDF copy - not as friendly (to me).
>   Exactly what is
>      Pod::HtmlPsPdf
> and how (and why) do I install it.  Thanks.

This is a module, available off of CPAN:
     http://www.cpan.org/modules/by-module/Pod/Pod-HtmlPsPdf-0.04.tar.gz

(Written by Stas, in fact!)

It allows you to create HTML, Ps (Postscript) and PDF documents given POD.

What is POD (or Pod)?  "Plain Old Documentation".  This is the native
documentation format for Perl modules.  For any perl module you have
installed on your system, you can read its documentation by the
"perldoc MODULENAME" command.  The perldoc command will scan the module
for its included POD, and then render the POD for your reading pleasure.

----------------------

What is CPAN?

CPAN is the Comprehensive Perl Archive Network.  It is a vast collection
of user-contributed Perl modules that cover a vast array of common (and
not so common) tasks that you might wish to cover.  It will simplify
your life greatly.

There is an installation procedure that you can follow that will allow
you to take a module off of CPAN and put it on your computer.  There
is documentation available on the CPAN web site, http://www.cpan.org/
that you can read and learn and therefore allow you to install the
modules.  (Usually it's not difficult to install a module -- you should
usually be able to do it in 5 command lines, or less if you don't mind
stringing a bunch of them together with "&&" logical joiners.)

There is a module available on CPAN called "CPAN" that, if you already
have it installed on your system, can greatly ease your task of installing
modules off of CPAN.  If you have it installed, I suggest you use it.
If you don't have it installed, I suggest you install it and then use it
to install all future modules.

----------------------

How can you tell if you nave module Foo::Bar::Baz installed?

     perl -MFoo::Bar::Baz -e 'print "$Foo::Bar::Baz::VERSION\n";'

If you have the module installed, this command will tell you the version
of the module you have installed.  If you don't have it installed, then
it'll spew out a few lines regarding how Foo::Bar::Baz can't be found
within the Perl module include path of your system. (called @INC)

Note that some CPAN modules -- *including* Pod::HtmlPsPdf" -- have
*dependancies*.  Sometimes these dependancies are other Perl modules.
(if so, then the CPAN module can automatically follow the depedancies
and install the modules that are depended-upon and install them).
Sometimes the dependancies depend on you having other *non* Perl programs
(or libraries) installed on your system  If you try to install a Perl
module that has one of these kinds of dependancies and you don't have
the thing that is depended upon on your system, then the module
installation attempt will fail and you will have to go and install
that thing first before you try installing your Perl module again.
*Pay attention* to what the installation error report says -- it should
provide you with the information (or at least the clues) you need in
order to successfully install the module.

----------------------

How do you install pieces of software that aren't Perl that the
random CPAN module that you're trying to install might need?

That depends on your operating system.  I use Debian GNU/Linux.
Lots of people use RedHat based Linux systems.  And then there's
Solaris.  And other Unices.  And (gasp!) Windows OSes.  Each one
has a different way to approach this problem.

It also depends on the program / library in question.

I'll have to let you work on this part yourself for now, at least
until you've put in a few hours of trying on your own and you can
come back with a few specific questions. (i.e.  "I need to install
the following, I tried doing the following, it didn't work, and
here's the error message I'm getting.  My system setup is the following.
What's going on?")

----------------------

Another useful piece of information -- you can read the POD of a module
without it already being installed on your machine!  You do this by
going to www.cpan.org and looking info re: CPAN module documentation.
There are several selections along these lines -- pick one, check it out,
see if it gives you what you want, and if not then check out another
one.  Rinse, lather, repeat...

I suggest you check out the Pod::HtmlPsPdf documentation online using
this technique.  Here's a direct URL, just because I'm such a nice
guy...
http://theoryx5.uwinnipeg.ca/CPAN/data/Pod-HtmlPsPdf/Pod/HtmlPsPdf.html

----------------------

Why am I going into so much detail?

Because it seems like you haven't done this kind of thing before.
Note that the mod_perl installation itself (if you aren't using some
packaged module like an RPM or DEB or something like that) includes
a bunch of outside dependancies.

You'll always be faced with challenges when it comes to administering a
Perl site of any degree of complexity, and that includes mod_perl.  But
once you learn the ins and outs, it's really not so bad.  Be willing
to learn.  That's the best advice I can give.

Cheers,
Richard

-- 
----------------------------------------------------------------------------
  Richard Dice * Personal 416 841 7365 * Fax 416 841 7364
  ShadNet Creator * http://shadnet.shad.ca/ * rdice@shadnet.shad.ca
  Occasional Writer, HotWired * http://www.hotwired.com/webmonkey/
      "squeeze the world 'til it's small enough to join us heel to toe"
          - jesus jones


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Stas,
  I know the guide is posted on line.  I would like to
get a copy on my server to save on traffic.  Moreover,
I don't want a PDF copy - not as friendly (to me).
  Exactly what is
     Pod::HtmlPsPdf
and how (and why) do I install it.  Thanks.

      John Kolvereid

--- Stas Bekman <st...@stason.org> wrote:
> John Kolvereid wrote:
> > Unbelievable - Not only cannot I install and
> configure
> > mod_perl, I can't even load the "guide".  I
> downloaded
> > Apache-mod_perl_guide-1.31 and untarred it. Then
> like
> > the instructions dictate I entered
> >     perl Makefile.PL - ran ok
> >     make install
> > The last instruction choked because it couldn't
> exec
> > "pod2hpp".
> >   So I say "ok" it's the version.  I try 1.30. 
> The
> > same. Then I read the readme on their web site. 
> It
> > says to get the latest POD sources.  I download 
> >    guide-cvs-snapshot_200203241203_tar.gz and
> untar
> > it.
> > Once again, the same: "pod2hpp" does not exist.
> > 
> >   Not sure the view is worth the climb.
> 
> Huh? The guide is all here:
> http://perl.apache.org/guide.
> You can even grab it as a pdf.
> 
> To build it from sources you need to install
> Pod::HtmlPsPdf.
> 
> If you were looking closely at the output when you
> run 'perl 
> Makefile.PL' it should have told you that you are
> missing the prerequisite.
> 
> 
> >           John Kolvereid
> > 
> > 
> > --- Ged Haywood <ge...@www2.jubileegroup.co.uk>
> wrote:
> > 
> >>Hi there,
> >>
> >>On Sat, 23 Mar 2002, John Kolvereid wrote:
> >>
> >>
> >>>    Which Guide?  Please advise.
> >>
> >>http://perl.apache.org/guide
> >>
> >>
> >>Did you read any of the other documentation? 
> Please
> >>let me know why
> >>you did not know about the Guide, we have
> obviously
> >>failed you.
> >>
> >>73,
> >>Ged.
> >>
> > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy
> Awards�
> > http://movies.yahoo.com/
> 
> 
> 
> -- 
> 
> 
>
__________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/     mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org  
> http://ticketmaster.com
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Stas Bekman <st...@stason.org>.
John Kolvereid wrote:
> Unbelievable - Not only cannot I install and configure
> mod_perl, I can't even load the "guide".  I downloaded
> Apache-mod_perl_guide-1.31 and untarred it. Then like
> the instructions dictate I entered
>     perl Makefile.PL - ran ok
>     make install
> The last instruction choked because it couldn't exec
> "pod2hpp".
>   So I say "ok" it's the version.  I try 1.30.  The
> same. Then I read the readme on their web site.  It
> says to get the latest POD sources.  I download 
>    guide-cvs-snapshot_200203241203_tar.gz and untar
> it.
> Once again, the same: "pod2hpp" does not exist.
> 
>   Not sure the view is worth the climb.

Huh? The guide is all here:
http://perl.apache.org/guide.
You can even grab it as a pdf.

To build it from sources you need to install Pod::HtmlPsPdf.

If you were looking closely at the output when you run 'perl 
Makefile.PL' it should have told you that you are missing the prerequisite.


>           John Kolvereid
> 
> 
> --- Ged Haywood <ge...@www2.jubileegroup.co.uk> wrote:
> 
>>Hi there,
>>
>>On Sat, 23 Mar 2002, John Kolvereid wrote:
>>
>>
>>>    Which Guide?  Please advise.
>>
>>http://perl.apache.org/guide
>>
>>
>>Did you read any of the other documentation?  Please
>>let me know why
>>you did not know about the Guide, we have obviously
>>failed you.
>>
>>73,
>>Ged.
>>
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/



-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Unbelievable - Not only cannot I install and configure
mod_perl, I can't even load the "guide".  I downloaded
Apache-mod_perl_guide-1.31 and untarred it. Then like
the instructions dictate I entered
    perl Makefile.PL - ran ok
    make install
The last instruction choked because it couldn't exec
"pod2hpp".
  So I say "ok" it's the version.  I try 1.30.  The
same. Then I read the readme on their web site.  It
says to get the latest POD sources.  I download 
   guide-cvs-snapshot_200203241203_tar.gz and untar
it.
Once again, the same: "pod2hpp" does not exist.

  Not sure the view is worth the climb.

          John Kolvereid


--- Ged Haywood <ge...@www2.jubileegroup.co.uk> wrote:
> Hi there,
> 
> On Sat, 23 Mar 2002, John Kolvereid wrote:
> 
> >     Which Guide?  Please advise.
> 
> http://perl.apache.org/guide
> 
> 
> Did you read any of the other documentation?  Please
> let me know why
> you did not know about the Guide, we have obviously
> failed you.
> 
> 73,
> Ged.
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Sat, 23 Mar 2002, John Kolvereid wrote:

>     Which Guide?  Please advise.

http://perl.apache.org/guide


Did you read any of the other documentation?  Please let me know why
you did not know about the Guide, we have obviously failed you.

73,
Ged.


Re: AddModule mod_perl.c

Posted by John Kolvereid <ak...@yahoo.com>.
Hi Ged,
    Which Guide?  Please advise.  Thanks.
        John Kolvereid

--- Ged Haywood <ge...@www2.jubileegroup.co.uk> wrote:
> Hi there,
> 
> On Sat, 23 Mar 2002, John Kolvereid wrote:
> 
> >    I am trying to install/configure mod_perl.  I
> think
> > it is installed but not quite sure.
> 
> It's in the Guide. (How do I know if mod_perl is
> installed?)
> 
> > According to the mod_perl Reference Guide the line
> >      AddModule mod_perl.c
> > should be added to my httpd.conf, otherwise
> mod_perl
> > is not activated.
> 
> I think you'd better have a more careful look at
> that Guide.  You only
> need that in your config if you have mod_perl built
> as a DSO (Dynamic
> Shared Object) which means that Apache starts
> without trhe mod_perl
> module and then loads it later when it reads the
> line
> 
>       AddModule mod_perl.c
> 
> in httpd.conf.
> 
> > when I include the line and try
> > to load any page into my browser I get the msg:
> >   The document contained no data
> 
> Something isn't working right.  :)  Could be all
> sorts of things.
> Read the file mod_perl/SUPPORT to begin with.  Post
> the information
> requested in there.
> 
> 73,
> Ged.
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/

Re: AddModule mod_perl.c

Posted by Ged Haywood <ge...@www2.jubileegroup.co.uk>.
Hi there,

On Sat, 23 Mar 2002, John Kolvereid wrote:

>    I am trying to install/configure mod_perl.  I think
> it is installed but not quite sure.

It's in the Guide. (How do I know if mod_perl is installed?)

> According to the mod_perl Reference Guide the line
>      AddModule mod_perl.c
> should be added to my httpd.conf, otherwise mod_perl
> is not activated.

I think you'd better have a more careful look at that Guide.  You only
need that in your config if you have mod_perl built as a DSO (Dynamic
Shared Object) which means that Apache starts without trhe mod_perl
module and then loads it later when it reads the line

      AddModule mod_perl.c

in httpd.conf.

> when I include the line and try
> to load any page into my browser I get the msg:
>   The document contained no data

Something isn't working right.  :)  Could be all sorts of things.
Read the file mod_perl/SUPPORT to begin with.  Post the information
requested in there.

73,
Ged.