Mailing List Archive

Building apache from source / LoadModules problem
Hello all. I am trying to compile apache 1.3.22 to use .so modules but I
am having problems. I am also compiling php into it too.

When I use the AddModule and LoadModule commands and run apachectl
configtest, I get the following error.
Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
not included in the server configuration

I also ran a httpd -l and the module I am adding is not included. I have
searched the archives and didn't really find anything helpful.

Below are the commands that I am running to compile the sources.

./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max
make
cd ../php-4.1.1
./configure --with-mysql --with-apache=../apache_1.3.22 --enable-track-vars
make
make install
cd ../apache_1.3.22
./configure --activate-module=src/modules/php4/libphp4.a
make
make install

What am I missing?

Thanks

CDitty


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Building apache from source / LoadModules problem [ In reply to ]
> From: CDitty [mailto:mail@redhotsweeps.com]

> When I use the AddModule and LoadModule commands and run apachectl
> configtest, I get the following error.
> Syntax error on line 206 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
> not included in the server configuration
>
> I also ran a httpd -l and the module I am adding is not included. I have
> searched the archives and didn't really find anything helpful.
>

When you did "httpd -l" was mod_so in there? If not, you can't use
LoadModule.

> Below are the commands that I am running to compile the sources.
>
> ./configure --prefix=/usr/local/apache --enable-module=most
> --enable-shared=max
> make
> cd ../php-4.1.1
> ./configure --with-mysql --with-apache=../apache_1.3.22
> --enable-track-vars
> make
> make install
> cd ../apache_1.3.22
> ./configure --activate-module=src/modules/php4/libphp4.a

Shouldn't this line also have
"--prefix=/usr/local/apache --enable-module=most --enable-shared=max"?

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Building apache from source / LoadModules problem [ In reply to ]
At 10:08 PM 1/17/2002, you wrote:
>When you did "httpd -l" was mod_so in there? If not, you can't use
>LoadModule.

Not there.

> > Below are the commands that I am running to compile the sources.
> >
> > ./configure --prefix=/usr/local/apache --enable-module=most
> > --enable-shared=max
> > make
> > cd ../php-4.1.1
> > ./configure --with-mysql --with-apache=../apache_1.3.22
> > --enable-track-vars
> > make
> > make install
> > cd ../apache_1.3.22
> > ./configure --activate-module=src/modules/php4/libphp4.a
>
>Shouldn't this line also have
>"--prefix=/usr/local/apache --enable-module=most --enable-shared=max"?

Are you saying the first configure line should be in ""s? If not. then
that is the same line as I have above. My line is just
wrapped in the email.

Afraid I don't understand.

Chris


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Building apache from source / LoadModules problem [ In reply to ]
> From: CDitty [mailto:mail@redhotsweeps.com]
> > > cd ../apache_1.3.22
> > > ./configure --activate-module=src/modules/php4/libphp4.a
> >
> >Shouldn't this line also have
> >"--prefix=/usr/local/apache --enable-module=most --enable-shared=max"?
>
> Are you saying the first configure line should be in ""s? If not. then
> that is the same line as I have above. My line is just
> wrapped in the email.
>

Nope. You configure apache twice: once before compiling php and once after.
I'm guessing you should use the same options both times (except for adding
the activate-module on the last one). The way you have it, you aren't
enabling shared modules when you do your final configuration of apache, so
you don't get mod_so included.

In other words, add "--enable-shared=max" to your final configure (and
perhaps --enable-module=most and --prefix=... as well).

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Building apache from source / LoadModules problem [ In reply to ]
Ok.. I recompiled like you suggested below. mod_so is there now.

Thanks

Chris

At 10:18 PM 1/17/2002, you wrote:

>Nope. You configure apache twice: once before compiling php and once after.
>I'm guessing you should use the same options both times (except for adding
>the activate-module on the last one). The way you have it, you aren't
>enabling shared modules when you do your final configuration of apache, so
>you don't get mod_so included.
>
>In other words, add "--enable-shared=max" to your final configure (and
>perhaps --enable-module=most and --prefix=... as well).
>
>Joshua.
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org