httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hasanuddin Tamir <>
Subject Re: LOADMODULE...
Date Mon, 21 Jan 2002 07:17:50 GMT
On Sun, 20 Jan 2002, Justin Pywell <> wrote,

> Hey, Im pretty much new at configuring pretty much every aspect of my
> server. I am attempting to setup virtual domains so I can host all my
> domains on the 1 static IP. I so far have only been able to get the first
> virtualhost entry to show up on there... which I think is correct and maybe
> I just need to configure BIND... which is another interesting peice of
> work... Any tips or hints of experience are always welcome.
> LoadModule
> libexec/ ... where is this file supposed to exist on the server? I

That means that the LoadModule directive expected to find under
libexec directory relative to the ServerRoot but couldn't find it there.

> get this error when trying to restart if I unblock it.
> Syntax error on line 237 of /usr/local/apache/conf/httpd.conf:
> Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not
> included in the server configuration

It depends on your installation layout.  Red Hat puts it in directory
called /usr/lib/apache and links it to /etc/httpd/libexec.  If you install
from scracth you have many choices but the default is /usr/local/apache as
the server root, which seems to be the case according to your httpd.conf
location.  So the shared modules are probably in /usr/local/apache/libexec,
if you compiled and installed apache and its modules dinamically.

But, if you installed apache statically, then you won't find anything in
/usr/local/apache/libexec.  And the directive LoadModule (and its
counterpart AddModule) will be useless (can be harm indeed) since they are
used to add and load modules dinamycally.

One way to make sure is by issuing,

    /usr/local/apache/bin/httpd -l

If you see only a few (usually two) entries there, and one of them is
mod_so.c, then your apache is prepared to load modules dynamically.  But
these modules must reside somewhere.  If you see more entries then they're
statically linked to apache.  Check out if php is included in the list and
if so, you don't need the LoadModule.

Trabas -

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message