OS Manuals

/usr/bin/apxs

Apache HTTP Server

From apache2 2.4.70-r0 (os), captured 2026-11-07 by running apxs --help (exit 1). permalink

apxs:Error: Unknown option: -.
apxs:Error: Unknown option: h.
Usage: apxs -g [-S <var>=<val>] -n <modname>
       apxs -q [-v] [-S <var>=<val>] [<query> ...]
       apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
               [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
               [-Wl,<flags>] [-p] <files> ...
       apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
       apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
Options (17)
OptionDescriptionSource
-n modnameThis explicitly sets the module name for the -i (install) and -g (template generation) option.man
-qPerforms a query for variables and environment settings used to build httpd.man
-S name=valueThis option changes the apxs settings described above.man
-gThis generates a subdirectory name (see option -n) and there two files: A sample module source file named mod_name.c which can be used as a template for creating your own modules or as a quick start…man
-cThis indicates the compilation operation.man
-o dsofileExplicitly specifies the filename of the created dynamically shared object.man
-D name=valueThis option is directly passed through to the compilation command(s).man
-I incdirThis option is directly passed through to the compilation command(s).man
-L libdirThis option is directly passed through to the linker command.man
-l libnameThis option is directly passed through to the linker command.man
-WcThis option passes compiler-flags as additional flags to the libtool --mode=compile command.man
-WlThis option passes linker-flags as additional flags to the libtool --mode=link command.man
-pThis option causes apxs to link against the apr/apr-util libraries.man
-iThis indicates the installation operation and installs one or more dynamically shared objects into the server's modules directory.man
-aThis activates the module by automatically adding a corresponding LoadModule line to Apache's httpd.conf configuration file, or by enabling it if it already exists.man
-ASame as option -a but the created LoadModule directive is prefixed with a hash sign (#), i.e., the module is just prepared for later activation but initially disabled.man
-eThis indicates the editing operation, which can be used with the -a and -A options similarly to the -i operation to edit Apache's httpd.conf configuration file without attempting to install the…man
Examples (11) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.