Gossamer Forum
Quote Reply
mod_perl
Alex/Pugdog,

I have just tried to install mod_perl and can't for the life of me get it to work properly.

Heres what I did......

From telnet I did Makefile.PL, then make and make install.

That all worked ok.

Then I uncommented the following in httpd.conf

LoadModule perl_module /usr/lib/apache/libperl.so

AddModule mod_perl.c

Then at the bottom of httpd.conf I added.....

PerlRequire /etc/httpd/conf/startup.pl
PerlFreshRestart On

Alias /cgi-bin/ /home/sites/home/web/cgi-bin/
<Location /cgi-bin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options ExecCGI
</Location


.......and finally made the startup.pl file and put this is it.....

#!/usr/bin/perl
BEGIN{
use Apache();
use lib Apache->server_root_relative('/etc/httpd');
}

use Apache::Registry();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp();

1;



When I look at the environment variables, it still says CGI/1.1 and mod_perl/1.24 shows up twice when I look at the server_software variable.

What did I do wrong?....

Thanks.








Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: mod_perl In reply to
Don't try and build mod_perl dynamically. See:

http://perl.apache.org/guide/

For more info..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
Thanks :)

Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: mod_perl In reply to
Hmmm....

It required the Apache src to install mod_perl and either cobalt didn't include the source on the RAQ4 or it is hidden beyond belief.

Any ideas where I'd find it?

My server root is /etc/httpd


Paul Wilson.
http://www.wiredon.net
Quote Reply
Re: mod_perl In reply to
It's probably not included. You would need to download a new copy.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mod_perl In reply to
I tried that yesterday.....apache_1.3.17 :) installed into /usr/local/apache

I cd'd to the directory and type'd dir and no src directory showed up. Everything else was there.

How will installing a new copy of Apache affect the cobalt set up?

When I shutdown the original apache and started the one in /usr/local/apache and went to my main page, it worked but all the images were red X's

Paul Wilson.
http://www.wiredon.net