Re: AddModule mod_perl.c

2002-03-30 Thread John Kolvereid

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 [EMAIL PROTECTED] 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

2002-03-30 Thread Per Einar Ellefsen

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 [EMAIL PROTECTED] 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
[EMAIL PROTECTED]




Install success - finally

2002-03-30 Thread John Kolvereid

Hi,
   After several frustrating weeks I am finally able,
w/ all your help, to successfully install mod_perl. 
The problem was in the mod_perl configuration.  I had
used the line
 APACHE_SRC=../apache_1.3.23
it should have been
 APACHE_SRC=../apache_1.3.23/src

Then after examining the site
http://www.delouw.ch/linux/apache.phtml
I added the following lines to my Apache configuration
--activate-module=src/modules/perl/libperl.a
--enable-module=perl

Now I am successfully running
Apache 1.3.23
mod_perl 1.26
PHP 4.0.6
mod_ssl 2.8.7
openssl 0.9.6b
Jakarta Tomcat 4.0

My most sincere thanks go to all of you on the
mod_perl mailing list, esp.
   RB - OCNS Consulting
   Ged Haywood
   Stas Bekman
   Per Einar Ellefsen
   Perrin Harkins
   jon schatz

Now I can continue reading the book Apache Modules w/
Perl  C.

Thanks again.

John Kolvereid

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



Install NOT quite successful

2002-03-30 Thread John Kolvereid

Hi again,
   I was so excited when I thought mod_perl was
installed that I forgot to try the web site.  I WAS
able to load the page odin/perl/hello.pl which is
located in my Apache::Registry.  Then I tried to load
my home page.  I got the all-too-familiar
   'The document contained no data'
and nothing appeared.  Now I know I am close but still
no cigar.

   Any thoughts on why whenever I try to load my home
page I get the pop-up window w/ the msg:
   'The document contained no data'

Please advise.  I know I am close.  Thanks.

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



Re: Install NOT quite successful

2002-03-30 Thread John Kolvereid

Hi again,
   Here's a hint that may trigger why I can't load my
home page.  When I start Apache I get the msgs (from
the error_log):
  [error] Cannot remove module mod_perl.c:  not found
in module list.
  Apache/1.3.23 (Unix) mod_perl/1.26 PHP/4.0.6
mod_ssl/2.8.7 OpenSSL/0.9.6b configured - resuming
normal operations

  Does this help explain why I only get the msg:
  'The document contained no data'

I have no idea what document it is referring to.

  John Kolvereid

--- John Kolvereid [EMAIL PROTECTED] wrote:
 Hi again,
I was so excited when I thought mod_perl was
 installed that I forgot to try the web site.  I WAS
 able to load the page odin/perl/hello.pl which is
 located in my Apache::Registry.  Then I tried to
 load
 my home page.  I got the all-too-familiar
'The document contained no data'
 and nothing appeared.  Now I know I am close but
 still
 no cigar.
 
Any thoughts on why whenever I try to load my
 home
 page I get the pop-up window w/ the msg:
'The document contained no data'
 
 Please advise.  I know I am close.  Thanks.
 
 __
 Do You Yahoo!?
 Yahoo! Greetings - send holiday greetings for
 Easter, Passover
 http://greetings.yahoo.com/


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



Re: Apache::Registry question

2002-03-30 Thread fliptop

Kirk Rogers wrote:

 How do i configure the httpd.conf file to maintain two different cgi-bin
 directories with Apache::Registry?  Not sure if I'm asking the question
 correctly so here's a quick explanation.
 
 I have two cgi-bin directories under one Virtual host:


this way works for me:

VirtualHost 1.2.3.4
   ServerAdmin  [EMAIL PROTECTED]
   DocumentRoot /path/to/doc/root
   ServerName   www.whatever.com
   ServerAlias  whatever.com
   ScriptAlias  /cgi-bin/ /path/to/cgi-bin/

   Directory /path/to/cgi-bin
 AllowOverride None
 Options   ExecCGI
 Order allow,deny
 Allow from all
 SetHandlerperl-script
 PerlHandler   Apache::Registry
   /Directory

   Directory /path/to/some/other/cgi-bin
 AllowOverride AuthConfig
 Options   ExecCGI
 Order allow,deny
 Allow from all

 Files somefile.cgi
   AuthName  Restricted Area
   AuthType  Basic
   AuthUserFile  /path/to/users/file
   require   valid-user
   SetHandlerperl-script
   PerlHandler   Apache::Registry
 /Files
   /Directory
/VirtualHost




Closer to installation

2002-03-30 Thread John Kolvereid

Me again,
  I removed the lines
--activate-module=src/modules/perl/libperl.a
--enable-module=perl
and recompiled Apache.  Then I commented out the line
AddModule mod_perl.c
from my httpd.conf.

Now I don't get the msg:
'The document contained no data'
Moreover, I can open my home page as before.  Also I
can load my 'hello.pl' from the Apache::Registry
location /perl/hello.pl.  The only thing I can't do
now is to load the 'hello.pl' from a web page.
  I am trying 

 centerform action=/perl/hello.pl
 input type=submit value=mod_perl   
 /formcenter
 
as I do w/ CGI scripts.  What appears in the browser
is the text of the page rather than the html.  Yet the
very same page appears fine when I load it directly w/
   URL: /odin/perl/hello.pl

For reference my mod_perl.conf file is

  PerlRequire conf/mod_perl.pl
  PerlFreshRestart On

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

  Alias /perl/ /home/httpd/perl/
  Location /perl
SetHandler  perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
Allow from all
  /Location

Any thoughts.  Thanks

 John Kolvereid

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



Re: AddModule mod_perl.c

2002-03-30 Thread Ged Haywood

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

2002-03-30 Thread John Kolvereid

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
 titleMod_perl/title
 /head

 body
 centerHello 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
 [EMAIL PROTECTED]
 


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