httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farag, Hany M (Hany)" <hfa...@lucent.com>
Subject Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration
Date Fri, 27 Jul 2001 16:36:17 GMT
Hi,
Does anybody knows why i'm getting this error:

[root@itchy-scratchy bin]# ./apachectl configtest
Syntax error on line 947 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not
included in the server configuration
[root@itchy-scratchy bin]# 

Thanks
Hany

root@itchy-scratchy bin]# ./apxs -i -a -c mod_example.c
libtool --silent --mode=compile gcc -g -O2 -pthread
-I/usr/local/apache2/include  -c -o mod_example.lo mod_example.c && touch
mod_example.slo
mod_example.c: In function `x_child_init':
mod_example.c:948: warning: passing arg 3 of `apr_pool_cleanup_register'
from incompatible pointer type
mod_example.c:948: warning: passing arg 4 of `apr_pool_cleanup_register'
from incompatible pointer type
libtool --silent --mode=link gcc -g -O2 -pthread -o mod_example.la -rpath
/usr/local/apache2/modules -module -avoid-version   mod_example.lo
libtool --mode=install cp mod_example.la
/usr/local/apache2/modules/mod_example.la
cp .libs/mod_example.so /usr/local/apache2/modules/mod_example.so
cp .libs/mod_example.lai /usr/local/apache2/modules/mod_example.la
cp .libs/mod_example.a /usr/local/apache2/modules/mod_example.a
ranlib /usr/local/apache2/modules/mod_example.a
chmod 644 /usr/local/apache2/modules/mod_example.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2/modules/mod_example.la
[activating module `example' in /usr/local/apache2/conf/httpd.conf]
[root@itchy-scratchy bin]# apachectl restart
bash: apachectl: command not found
[root@itchy-scratchy bin]# ./apachectl restart
./apachectl restart: configuration broken, ignoring restart
./apachectl restart: (run 'apachectl configtest' for details)
[root@itchy-scratchy bin]# ./apachectl configtest
Syntax error on line 947 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not
included in the server configuration
[root@itchy-scratchy bin]# 

Mime
View raw message