You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by semuel <se...@semuel.co.il> on 2003/12/31 00:54:22 UTC

Installation Help

Hello There.

 

I have installed Mandrake 9.1, and in the installation I asked it to also
install Apache 2, mod_perl, mysql.

now I want to make them all work. I took stason's pages, and there he said
to write in the httpd.conf (with is in my system httpd2.conf) a loadmodule
line. no good - the apache didn't find the module.

a little search - the mod_perl module is in different folder. (something
extena)

tried to copy the mod_perl file to the apache's modules files did worked,
but everything else I tried trigered "couldn't find" errors.

 

the perl is in the folder:

/usr/lib/perl5/

and have three sub-folders:

5.8.0, vendor_perl, site_perl

the second have:

5.8.0/i386-linux-thread-multi/Apache2/Apache

that does not contain an Registry module.

 

My apache identify itself as:

Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08
Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1

 

So, it seen that I have mod_perl 2. (that what 1.99 means, doesn't it?)

 

the apache modules are in:

/usr/lib/apache2-2.0.44/

and the mod_perl is in:

/usr/lib/apache2-extramodules-2.0.44/

so I put in the apache httpd2.conf the line:

LoadModule perl_module extramodules/mod_perl.so

instead of:

LoadModule perl_module modules/mod_perl.so

and suprizingly, apache did found the mod_perl file.

So, I inserted another line:

PerlRequire /etc/httpd/..../apache2-startup.pl

(well, now I'm guessing. didn't write the real file name/path, but it's
something like that)

 

And now, Apache refuse to start, and state the he cann't find
Apache/Registry.

I chacked, and he's right - there is no Registry module under Apache that
under Apache2 folder.

on the other hand,  cann't find anyone that calls that module.

the @INC contain the Apache2 folder, and also an /var/www/perl/.mod_perl2
folder.

 

The questions are:

1. Did I do the right thing in the extramodules thing? (I was totally
guessing)

2. Who is calling the Registry module?

3. Where is that module, and how do I make Apache know that?

 

And some apache questions:

1. how do I get a list of all the modules that apache loaded? (the dynamic
ones, not the static)

2. I don't have a util named "apxs". is it important?

 

What annoy me the most is that I still haven't wrote a single line in perl.
didn't breach the installation stage. ufff.

 

Semuel Fomberg.

 



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Installation Help

Posted by Stas Bekman <st...@stason.org>.
> I have installed Mandrake 9.1, and in the installation I asked it to also
> install Apache 2, mod_perl, mysql.
[...]
> 5.8.0/i386-linux-thread-multi/Apache2/Apache
> 
> that does not contain an Registry module.

See:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends

> My apache identify itself as:
> 
> Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08
> Perl/v5.8.0 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1
> 
> So, it seen that I have mod_perl 2. (that what 1.99 means, doesn't it?)

Yes. And you want to install mod_perl 1.99_12 released a week ago to avoid all 
the bugs that were resolved since 1.99_08.

> the apache modules are in:
> 
> /usr/lib/apache2-2.0.44/
> 
> and the mod_perl is in:
> 
> /usr/lib/apache2-extramodules-2.0.44/
> 
> so I put in the apache httpd2.conf the line:
> 
> LoadModule perl_module extramodules/mod_perl.so
> 
> instead of:
> 
> LoadModule perl_module modules/mod_perl.so
> 
> and suprizingly, apache did found the mod_perl file.

You use a prebuilt package by Mandrake, I suppose that they provide their own 
installation notes. We can't possibly know what each distro does if they don't 
follow the standard way.

> So, I inserted another line:
> 
> PerlRequire /etc/httpd/..../apache2-startup.pl
> 
> (well, now I'm guessing. didn't write the real file name/path, but it's
> something like that)
> 
>  
> 
> And now, Apache refuse to start, and state the he cann't find
> Apache/Registry.

See above. It's ModPerl::Registry.
[...]
> And some apache questions:

Apache questions belong to the Apache users list:
http://httpd.apache.org/lists.html#http-users

> 2. I don't have a util named "apxs". is it important?

It's useful for 3rd party modules. I think you do have it. Some distros call 
it apxs2.

> What annoy me the most is that I still haven't wrote a single line in perl.
> didn't breach the installation stage. ufff.

You are much better off removing modperl binaries and building your own. In 
which case the docs at http://perl.apache.org/docs/2.0/ will answer all your 
questions.


__________________________________________________________________
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


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html