Could you please provide usage for apxs to set httpd.conf to custom path.

i.e  place " LoadModule antiloris_module   /usr/lib64/httpd/modules/" line in custom path httpd.conf.

Tried running by adding 
1. apxs -g -S SYSCONFDIR=/santosh/current/apache/httpd.conf

2. apxs -a -i -l cap -c mod_antiloris.c -S SYSCONFDIR=/santosh/current/apache/httpd.conf


\[root@licencehost mod_antiloris-0.3]#  /usr/sbin/apxs -a -i -l cap -c mod_antiloris.c -S SYSCONFDIR=/santosh/current/apache/httpd.conf
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o mod_antiloris.lo mod_antiloris.c && touch mod_antiloris.slo
/bin/sh /usr/lib64/apr/build/libtool --silent --mode=link gcc -o  -lcap -rpath /usr/lib64/httpd/modules -module -avoid-version    mod_antiloris.lo -S SYSCONFDIR=/orbital/current/apache/httpd.conf
/usr/lib64/httpd/build/ SH_LIBTOOL='/bin/sh /usr/lib64/apr/build/libtool' /usr/lib64/httpd/modules
/bin/sh /usr/lib64/apr/build/libtool --mode=install cp /usr/lib64/httpd/modules/
cp .libs/ /usr/lib64/httpd/modules/
cp .libs/mod_antiloris.lai /usr/lib64/httpd/modules/
cp .libs/mod_antiloris.a /usr/lib64/httpd/modules/mod_antiloris.a
ranlib /usr/lib64/httpd/modules/mod_antiloris.a
chmod 644 /usr/lib64/httpd/modules/mod_antiloris.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib64/httpd/modules
Libraries have been installed in:

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 the `-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/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages.
chmod 755 /usr/lib64/httpd/modules/
apxs:Error: Activation failed for custom /etc/httpd/conf/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..


On Fri, Oct 11, 2013 at 5:23 PM, Nick Kew <> wrote:
On Fri, 11 Oct 2013 12:14:48 +0530
Santosh Kumar <> wrote:

> Followed the Below steps


You use apxs to compile a module (see TFM).
You'll have to deal with minor API changes since 2.0,
but if any of those baffle you, that would be a more
specific question.

Nick Kew

To unsubscribe, e-mail:
For additional commands, e-mail: