You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Justin Pywell <py...@telusplanet.net> on 2002/01/21 07:57:30 UTC

LOADMODULE...

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/libphp4.so ... where is this file supposed to exist on the server? I
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

OS: RH 7.2
Apache: Latest Version
PHP 4.1.1
MySQL 3.23.47


---------------------------------------------------------------------
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: LOADMODULE...

Posted by Hasanuddin Tamir <sa...@trabas.com>.
On Sun, 20 Jan 2002, Justin Pywell <py...@telusplanet.net> 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/libphp4.so ... where is this file supposed to exist on the server? I

That means that the LoadModule directive expected to find libphp4.so 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.



hth
san
-- 
Trabas - http://www.trabas.com


---------------------------------------------------------------------
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