[Ilugc] PerlModule Issue when restarting httpd !

  • From: guitarvasu@xxxxxxxxx (vasudevan rk)
  • Date: Fri Sep 22 10:45:05 2006

Hi Luggies!
 Please suggest me how to over come this difficulties in
httpd.conf when restarting httpd.
root@sai [/usr/local/apache/conf]# vi httpd.conf
<IfModule mod_perl.c>
    PerlFreshRestart On
    PerlInitHandler Apache::StatINC
    PerlRequire /usr/local/apache/etc/perl/startup.perl
    PerlModule Apache::Registry
    PerlModule Apache::Status
    PerlModule Apache::Leak
    PerlModule Apache::DBI
    PerlModule Apache::AuthDBI
    PerlModule Apache::OutputChain
    PerlModule Apache::EmbperlChain
    PerlModule HTML::Embperl
    PerlModule DBI
    PerlModule DBD::mysql

<Files ~ "\.phtml$">
    SetHandler perl-script
    PerlHandler HTML::Embperl
    Options ExecCGI
    Order allow,deny
    Allow from all
</Files>

AddType text/html .phtml

</IfModule>

<VirtualHost 70.84.54.106>
 ServerName rt.adsmx.com
 DocumentRoot /opt/rt3/share/html
 AddDefaultCharset UTF-8

 PerlModule Apache::DBI
 PerlRequire /opt/rt3/bin/webmux.pl

 <Location />
  SetHandler perl-script
  PerlHandler RT::Mason
 </Location>
</VirtualHost>

root@sai [/usr/local/apache/conf]# service httpd start
Syntax error on line 1682 of
/usr/local/apache/conf/httpd.conf:
Invalid command 'PerlModule', perhaps mis-spelled or
defined by a module not included in the server
configuration
/etc/init.d/httpd start: httpd could not be started

I installed these dependencies in my system.

root@sai [~/.cpan/build]#ls
Apache-DBI-1.03/  Apache-Test-1.28/  DBD-mysql-3.0002/
 DBD-mysql-3.0007/  DBI-1.52/
HTTP-Server-Simple-Mason-0.09/ and also
perl-5.8.8,DB-mysql-2.1018 resides in /usr/local/ &
mod_perl-1.29 resides in /usr/local/src

Regards
vasu

Other related posts: