Found the option, (by intercghanging options) usr/sbin/apxs -S SYSCONFDIR="/santosh/current/apach" -a -i -l cap -c mod_antiloris.c
On Fri, Oct 18, 2013 at 2:38 PM, Santosh Kumar <santoshjee...@gmail.com>wrote: > Could you please provide usage for apxs to set httpd.conf to custom path. > > i.e place " LoadModule antiloris_module > /usr/lib64/httpd/modules/mod_antiloris.so" 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 > > 3 > > > ============================================================================================ > \[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 > mod_antiloris.la -lcap -rpath /usr/lib64/httpd/modules -module > -avoid-version mod_antiloris.lo -S > SYSCONFDIR=/orbital/current/apache/httpd.conf > /usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/bin/sh > /usr/lib64/apr/build/libtool' mod_antiloris.la /usr/lib64/httpd/modules > /bin/sh /usr/lib64/apr/build/libtool --mode=install cp > mod_antiloris.la/usr/lib64/httpd/modules/ > cp .libs/mod_antiloris.so /usr/lib64/httpd/modules/mod_antiloris.so > cp .libs/mod_antiloris.lai /usr/lib64/httpd/modules/mod_antiloris.la > 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: > /usr/lib64/httpd/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 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/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/lib64/httpd/modules/mod_antiloris.so > 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 <n...@webthing.com> wrote: > >> On Fri, 11 Oct 2013 12:14:48 +0530 >> Santosh Kumar <santoshjee...@gmail.com> wrote: >> >> >> > Followed the Below steps >> >> Why? >> >> 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: users-unsubscr...@httpd.apache.org >> For additional commands, e-mail: users-h...@httpd.apache.org >> >> >