Apache 2 CPAN installation

View: New views
2 Messages — Rating Filter:   Alert me  

Apache 2 CPAN installation

by teufboy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I try to install asp on my apache server with CPAN :

# rpm -qa | grep apache2
apache2-prefork-2.0.54-10
apache2-2.0.54-10
apache2-mod_perl-2.0.1-4
apache2-mod_php4-4.4.0-6

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

cpan> install Bundle::Apache::ASP
MLDBM is up to date.
Digest::MD5 is up to date.
MLDBM::Sync is up to date.
Apache::ASP is up to date.

--------------------------------------------------------------------
My httpd.conf ----------------------------------------------------
--------------------------------------------------------------------

# Si le module Perl est operationnel :
<IfModule mod_perl.c>
  Alias /perl/ /srv/www/htdocs/perl/
  <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
  </Location>
</IfModule>

# Module Perl Apache::ASP
<Files *.asp>
   SetHandler perl-script
   PerlHandler Apache::ASP
   PerlSetVar Filter Off
  PerlSetVar Debug 1
  PerlSetVar Debug 2
  Options +ExecCGI
  PerlSetVar MailAlertTo root@localhost
  PerlSetVar MailErrorsTo root@localhost
  PerlSetVar Global /tmp/asp
</Files>
--------------------------------------------------------------------

when I start apache :

/etc/init.d/apache2 restart
Syntax error on line 177 of /etc/apache2/httpd.conf:
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration

Someone Could hep me please !!!

A lot of thanks !!!!

Re: Apache 2 CPAN installation

by Warren Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

teufboy wrote:
> Syntax error on line 177 of /etc/apache2/httpd.conf:
> Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module
> not included in the server configuration

It looks like mod_perl is broken.  Try:

        $ rpm --verify apache2-mod_perl

If it prints anything, follow up on what it's reporting.  It might be
that there is some file corruption, or missing files.

If it doesn't return anything, I'd check for an updated set of RPMs from
your Linux distribution provider.  Are these official RPMs, or something
you downloaded from a third-party web site?

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...

LightInTheBox - Buy quality products at wholesale price