thegem has asked for the wisdom of the Perl Monks concerning the following question:

Hello and HELP!!

After I installed the mod_perl module "mod_perl-1.28", apache server version is apache_1.3.28, I get an error when I'm trying to start the apache server. Perl version: v5.8.0 built for sun4-solaris

Syntax error on line 205 of /local/apache1328/conf/httpd.conf:

Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration.

Installation steps:
# cd to apache distribution directory cd /local/apache/apache_1.3.28 ./configure --prefix=/local/apache1328 \ --enable-module=rewrite --enable-shared=rewrite \ --enable-module=speling \ --enable-shared=speling --enable-module=so \ --enable-module=status make make install # cd to mod_perl distribution cd /local/apache/mod_perl-1.28 perl Makefile.PL APACHE_PREFIX=/local/apache1328 APACHE_SRC=../apache_ +1.3.28/src DO_HTTPD=1 USE_APACI=1 PERL_AUTHEN=1 PERL_AUTHZ=1 ADD_MODU +LE=rewrite make make test make install # cd to apache distribution cd ../apache_1.3.28 make install
Can any of you tell me what is wrong here? I followed the installation instruction "Getting Your Feet Wet".

Thanks

Peter

janitored by ybiC: format for legibility

Replies are listed 'Best First'.
Re: Apache Error after Installing mod_perl
by allolex (Curate) on Aug 28, 2003 at 17:41 UTC

    Hello and welcome to the Monastery. Before you get hit over the head by some of the monks, keep in mind that your Apache configuration problem is not really a Perl problem. :) A lot of the monks don't like to answer Apache questions because there are already forums for them http://www.apache.org.

    Now that I've gotten that out of the way, that error message is telling you something. Your apache configuration file httpd.conf has a syntax error that you need to fix. It is probably having trouble finding the mod_perl module you installed (assuming apache was working before you tried to install mod_perl). There is a useful article at DevShed by Stas Bekman, who also has a book on mod_perl.

    --
    Allolex

Re: Apache Error after Installing mod_perl
by perrin (Chancellor) on Aug 28, 2003 at 18:39 UTC
    The instructions in that section are for building a statically linked mod_perl, and you don't seem to be following them. If you want to build a DSO, you need to use the more complete instructions here. More help is available on the mod_perl mailing list.
Re: Apache Error after Installing mod_perl
by cees (Curate) on Aug 28, 2003 at 18:48 UTC

    The LoadModule directive is part of the dso support in Apache. It looks like you compiled it into your Apache, with the --enable-module=so option, but your compiled Apache doesn't seem to have support for it. Perhaps you need to provide it with the correct libraries for dso support on Solaris.

    I would recommend getting Apache running on its own first. And check that it has dso support by running the following command:

    httpd -L | grep LoadModule

    If that doesn't return anything, then you have not successfully compiled dso support into Apache.

    Once you have Apache installed with dso support, then use the APXS method of installing mod_perl. I find it is much easier that way.

    Cheers,

    Cees

Re: Apache Error after Installing mod_perl
by talexb (Chancellor) on Aug 28, 2003 at 17:53 UTC

    And what happens if you try commenting out the mod_perl part and restarting? Does that do anything useful?

    --t. alex
    Life is short: get busy!