Apache2 | Kali Linux Tools

apache2

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

Installing

this package results in a complete installation, including configuration files, startup scripts, and support scripts.

Installed size: 565 KB How to install: sudo aptinstall

apache2 Dependencies:a2disconf Enable or disable a configuration file apache2[email protected]:~# man a2disconf A2ENCONF(8) A2ENCONF System Administrator’s Manual(8) NAME A2ENCONF, a2disconf – enable

or disable an apache2 configuration file

SYNOPSIS a2enconf [-q|-quiet] [-m|-maintmode] [ configuration ] a2disconf [-q|-quiet] [-m|-maintmode] [-p|-purge] [ configuration ] DESCRIPTION This page of the manual briefly documents the a2enconf and

a2disconf

commands. A2enconf is a script that enables the configuration file specified within the Apache2 configuration. It does this by creating symbolic links within /etc/apache2/conf-enabled. Similarly, a2disconf disables a specific configuration part by removing those symbolic links. It is not a mistake to enable a setting that is already enabled, or to disable one that is already disabled. Note that many configuration files may have a dependency on specific modules. Unlike module dependencies, they are not resolved automatically. Configuration fragments stored in the conf-available directory are considered non-essential or are being installed and managed by reverse dependencies (e.g. web scripts). OPTIONS -q, -quiet Do not display informational messages. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATUS a2enconf and a2disconf exit with status 0 if all configurations are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2enconf security a2disconf charset Enables Apache security policies stored in security configuration files and disables character set settings. /etc/apache2/conf-available FILES Directory with files that provide information about available configuration files. /etc/apache2/conf-enabled Directory with links to files in conf-available for enabled configuration files. SEE ALSO apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8). This page of the manual was written by Arno Toell <[email protected]> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. 14 February 2012 A2ENCONF(8) a2dismod Enable or disable a module apache2 [email protected]:~# man a2dismod A2ENMOD(8) A2ENMOD System Administrator’s Manual(8) NAME A2enmod, a2dismod – Enable

or disable an apache2

module SYNOPSIS a2enmod [-q|-quiet] [-m|-maintmode] [ module ] a2dismod [-q|-quiet] [-f|-force] [-m|-maintmode] [-p|-purge] [ mod-ule ] DESCRIPTION This page of the manual briefly documents the a2enmod and

a2dismod

commands . A2EnMod is a script that enables the specified module within the Apache2 configuration. It does this by creating symbolic links inside /etc/apache2/mods-enabled. Similarly, a2dismod disables a module by moving those symbolic links again. It is not a mistake to enable a module that is already enabled, or to disable one that is already disabled. Note that many modules have, in addition to a .load file, an associated .conf file. When you enable the module, the configuration directives in the .conf file as directives are placed in the context of the main apache2 server. OPTIONS -q, -quiet Do not display informational messages. -f, -force When you disable a module, the cascade also disables all modules that depend on it. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATE a2enmod and a2dismod exit with status 0 if all modules are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2enmod imagemap a2dismod mime_magic Enables the mod_imagemap module and disables mod-ule mod_mime_magic. FILES /etc/apache2/mods-available Directory with files that give information about the available modules. /etc/apache2/mods-enabled Directory with links to files in mods-available for enabled modules. SEE ALSO apache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8). This page of the manual was written by Daniel Stone <[email protected]> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. 12 October 2006 A2ENMOD(8) a2dissite Enable or disable an apache2 site / virtual host [email protected]:~# man a2dissite A2ENSITE(8) A2ENSITE System Administrator’s Manual(8) A2ENSITE NAME, a2dissite – enable

or disable an apache2 site / virtual host

SYNOPSIS a2ensite [-q|-quiet] [-m|-maintmode] [ site ] a2dissite [-q|-quiet] [-m|-maintmode] [-p|-purge] [ site ] DESCRIPTION This page of the manual briefly documents the a2ensite and

a2dissite commands

. a2ensite is a script that enables the specified site (containing a <VirtualHost>) block within the apache2 configuration. It does this by creating symbolic links within /etc/apache2/sites-enabled. Similarly, a2dis- site disables a site by removing those symbolic links. It is not a mistake to enable a site that is already enabled, or to disable one that is ready to disable. Apache treats the first specially enabled virtual host, as every request that doesn’t match any actual policy is redirected there. Therefore, it should be called 000-default to sort before the re-maining hosts are loaded first. OPTIONS -q, -quiet Do not display informational messages. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATUS a2ensite and a2dissite exit with status 0 if all sites are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2dissite 000-default Disables the default site. FILES /etc/apache2/sites-available Directory with files that give information about available sites. /etc/apache2/sites-enabled Directory with links to files on sites—available for enabled sites. SEE ALSO apache2ctl(8), a2enmod(8), a2dismod(8), a2enconf(8), a2disconf(8). AUTHOR This manual page was written by Stefan Fritsch <[email protected]> (based on Daniel Stone’s a2enmod manual page <[email protected]>) for the Debian GNU/Linux distribution. June 8, 2007 A2ENSITE(8) a2ENCONF Enable or disable a configuration file apache2[email protected]:~# man a2enconf A2ENCONF(8) A2ENCONF System Administrator’s Manual(8) NAME A2ENCONF, a2disconf – enable

or disable an apache2 configuration file

SYNOPSIS a2enconf [-q|-quiet] [-m|-maintmode] [ configuration ] a2disconf [-q|-quiet] [-m|-maintmode] [-p|-purge] [ configuration ] DESCRIPTION This page of the manual briefly documents the commands

A2enconf and a2disconf

. A2enconf is a script that enables the configuration file specified within the Apache2 configuration. It does this by creating symbolic links within /etc/apache2/conf-enabled. Similarly, a2disconf disables a specific configuration part by removing those symbolic links. It is not a mistake to enable a setting that is already enabled, or to disable one that is already disabled. Note that many configuration files may have a dependency on specific modules. Unlike module dependencies, they are not resolved automatically. Configuration fragments stored in the conf-available directory are considered non-essential or are being installed and managed by reverse dependencies (e.g. web scripts). OPTIONS -q, -quiet Do not display informational messages. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATUS a2enconf and a2disconf exit with status 0 if all configurations are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2enconf security a2disconf charset Enables Apache security policies stored in security configuration files and disables character set settings. /etc/apache2/conf-available FILES Directory with files that provide information about available configuration files. /etc/apache2/conf-enabled Directory with links to files in conf-available for enabled configuration files. SEE ALSO apache2ctl(8), a2enmod(8), a2dismod(8), a2ensite(8), a2dissite(8). This page of the manual was written by Arno Toell <[email protected]> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. 14 February 2012 A2ENCONF(8) a2enmod Enable or disable a module apache2[email protected]:~# man a2enmod A2ENMOD(8) A2ENMOD System Administrator’s Manual(8) NAME A2enmod, a2dismod – enable

or disable an apache2

module SYNOPSIS a2enmod [-q|-quiet] [-m|-maintmode] [ module ] a2dismod [-q|-quiet] [-f|-force] [-m|-maintmode] [-p|-purge] [ mod- ule ] DESCRIPTION This page of the manual briefly documents the

a2enmod and a2dismod

commands . A2EnMod is a script that enables the specified module within the Apache2 configuration. It does this by creating symbolic links inside /etc/apache2/mods-enabled. Similarly, a2dismod disables a module by moving those symbolic links again. It is not a mistake to enable a module that is already enabled, or to disable one that is already disabled. Note that many modules have, in addition to a .load file, an associated .conf file. When you enable the module, the configuration directives in the .conf file as directives are placed in the context of the main apache2 server. OPTIONS -q, -quiet Do not display informational messages. -f, -force When you disable a module, the cascade also disables all modules that depend on it. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATE a2enmod and a2dismod exit with status 0 if all modules are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2enmod imagemap a2dismod mime_magic Enables the mod_imagemap module and disables mod-ule mod_mime_magic. FILES /etc/apache2/mods-available Directory with files that give information about the available modules. /etc/apache2/mods-enabled Directory with links to files in mods-available for enabled modules. SEE ALSO apache2ctl(8), a2enconf(8), a2disconf(8), a2ensite(8), a2dissite(8). This page of the manual was written by Daniel Stone <[email protected]> for the Debian GNU/Linux distribution, as it is a Debian-specific script with the package. 12 October 2006 A2ENMOD(8) a2ensite Enable or disable an apache2 site / virtual host [email protected]:~# man a2ensite A2ENSITE(8) A2ENSITE System Administrator’s Manual(8) NAME a2ensite, a2dissite – enable

or disable an apache2 site / virtual host

SYNOPSIS a2ensite [-q|-quiet] [-m|-maintmode] [ site ] a2dissite [-q|-quiet] [-m|-maintmode] [-p|-purge] [ site ] DESCRIPTION This page of the manual briefly documents the

a2ensite and a2dissite

commands . a2ensite is a script that enables the specified site (containing a <VirtualHost>) block within the apache2 configuration. It does this by creating symbolic links within /etc/apache2/sites-enabled. Similarly, a2dis- site disables a site by removing those symbolic links. It is not a mistake to enable a site that is already enabled, or to disable one that is ready to disable. Apache treats the first specially enabled virtual host, as every request that doesn’t match any actual policy is redirected there. Therefore, it should be called 000-default to sort before the re-maining hosts are loaded first. OPTIONS -q, -quiet Do not display informational messages. -m, -maintmode Enables maintainer mode, that is, the invocation of the program is done automatically by a maintainer script. This switch should not be used by end users. -p, -purge When disabling a module, purge all traces of the module in the internal state database. OUTPUT STATUS a2ensite and a2dissite exit with status 0 if all sites are processed successfully, 1 if errors occur, 2 if an invalid option was used. EXAMPLES a2dissite 000-default Disables the default site. FILES /etc/apache2/sites-available Directory with files that give information about available sites. /etc/apache2/sites-enabled Directory with links to files on sites—available for enabled sites. SEE ALSO apache2ctl(8), a2enmod(8), a2dismod(8), a2enconf(8), a2disconf(8). AUTHOR This manual page was written by Stefan Fritsch <[email protected]> (based on Daniel Stone’s a2enmod manual page <[email protected]>) for the Debian GNU/Linux distribution. June 8, 2007 A2ENSITE(8) a2query

Retrieve the runtime configuration of a local Apache 2 HTTP server

[email protected]:~# a2query -help /usr/sbin/

a2query

version [unknown] by calling Getopt::Std::getopts (version 1.13 [paranoid]), running under Perl version 5.36.0. Usage: a2query [-OPTIONS [-MORE_OPTIONS]] [-] [PROGRAM_ARG1 …] The following single-character options are accepted: With arguments: -m -s -c Boolean (no arguments): -h -a -v -M -d -q Options can be merged. – Stops the processing of options. No space is required between the options and their arguments. For more details, run perldoc -F /usr/sbin/a2query [Now continued due to backward compatibility and excessive paranoia. See ‘perldoc Getopt::Std’ on $Getopt::Std::STANDARD_HELP_VERSION.]

apache2ctl

Apache HTTP Server Control Interface

[email protected]:~# apache2ctl -h Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file] [-C “directive”] [-c “directive”] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-l] [-t] [-T] [-S] [-X] Options: -D name : defines a name for use in <IfDefine name> -d directory : specify an alternate initial ServerRoot -f file: specify an alternate ServerConfigFile -C “policy”: process policy before reading configuration files -c “policy” : process policy after reading configuration files -e level : displays level startup errors (see LogLevel) -E file : log startup errors in file -v : display version number -V : Show build settings -h : list of available command-line options (this page) -l : list compiled into modules -L : list of available configuration policies -t -D DUMP_VHOSTS : display scanned vhost settings -t -D DUMP_RUN_CFG : display scanned run settings -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG -t -D DUMP_MODULES : show all loaded modules -M : a synonym for -t -D DUMP_MODULES -t -D DUMP_INCLUDES: display all included configuration files -t : run syntax check for configuration files -T: start without checking DocumentRoot(s) -X : debug mode (only one worker, do not separate) apachectl

Apache HTTP Server Control Interface

[email protected]:~ #

apachectl

-h Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file] [-C “directive”] [-c “directive”] [-k start|restart|graceful|graceful-stop|stop] [-v] [-v] [-h] [-l] [-l] [-t] [-t] [-s] [-x] Options: -D name : defines a name to use in <IfDefine name> -d directory : specify an alternate initial ServerConfigFile -f : specify an alternate ServerConfigFile -C “policy”: process policy before reading configuration files -c “policy” : process policy after reading configuration files -e level : displays startup errors of the level (see LogLevel) -File E: log startup errors in file -V : show version number -V : show build settings -h : list of available command-line options (this page) -l : list compiled into modules -L : list of available configuration policies -t -D DUMP_VHOSTS : display scanned vhost configuration -t -D DUMP_RUN_CFG : display scanned execution settings -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG -t -D DUMP_MODULES : display all loaded modules -M : a synonym for -t -D DUMP_MODULES -t -D DUMP_INCLUDES: Show all included configuration files -T : Run syntax check for configuration files -T : Start without checking DocumentRoot(s) -X : Debug mode (only one worker, do not separate)

Apache2-Bin

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

This package contains only the binaries and does not configure a running Web server instance. Install the “apache2” package for a fully functional instance.

Installed Size: 4.89 MBHow to install: sudo apt install apache2-bin

Dependencies:apache2

Apache Hypertext Transfer Protocol

Server[email protected]:~# apache2 -h Usage:

apache2

[-D name] [-d directory] [-f file] [-C “directive”] [-c “directive”] [-k start|restart|graceful|graceful-stop|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X] Options: -D name : defines a name for use in <IfDefine name> -d directory directives : specify an alternate initial ServerRoot -f file: specify an alternate ServerConfigFile -C “policy”: process policy before reading configuration files -c “policy” : process policy after reading configuration files -e level : displays level startup errors (see LogLevel) -E file : log startup errors in file -v : display version number -V : Show build settings -h : list of available command-line options (this page) -l : list compiled into modules -L : list of available configuration policies -t -D DUMP_VHOSTS : display scanned vhost settings -t -D DUMP_RUN_CFG : display scanned run settings -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG -t -D DUMP_MODULES : show all loaded modules -M : a synonym for -t -D DUMP_MODULES -t -D DUMP_INCLUDES: display all included configuration files -t : run syntax check for configuration files -T: start without checking DocumentRoot(s) -X : debug mode (only one worker, do not separate)

apache2-data

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

This package contains common architecture-independent files, such as icons, error pages, and static index files.

Installed size: 849 KBHow to install: sudo apt install apache2-data apache2-dev

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

This package provides development headers and the apxs2 binary for the Apache HTTP Server 2, useful for developing and linking third-party additions to the Apache Debian HTTP Server package.

It also provides useful dh_apache2 and dh sequence plugins for installing various Debian Apache2 extensions with debhelper. Supports

  • configurations of Apache 2 modules and shared objects
  • Site
  • configuration

  • files Global configuration files

Installed size: 1.06 MBHow to install: sudo apt install apache2-dev

Dependencies:apxs

APache eXtenSion tool

[email protected]:~# apxs -help

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] <archives> … apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> … apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> …

apxs2

APache eXtenSion tool

[email protected]:~# apxs2 -help 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] <archives> … apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> … apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> …

dh_apache2

Log configuration snippets to Apache web server

[email protected]:~# dh_apache2 -h Usage: dh_apache2 [options] dh_apache2 is part of debhelper. See debhelper(7) and dh_apache2(1) for complete usage instructions.

apache2-doc

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

This package provides documentation for the Apache HTTP Server 2. The documentation is sent in HTML format and can be accessed from an Apache HTTP server instance running locally or by navigating directly through the file system.

Installed Size: 24.53 MBHow to install: sudo apt install apache2-doc apache2-ssl-dev

The goal of the Apache HTTP Server Project is to build a secure, efficient, and extensible HTTP server as standards-compliant open source software. The result has long been the number one web server on the Internet.

This package provides the development header and dependencies for modules that interact with the internal openssl state of mod_ssl.

Installed size: 13 KBHow to install: sudo apt install apache2-ssl-dev

Dependencies:

apache2-suexec-custom

Provides a customizable version of the suexec helper for mod_suexec. This is not the upstream version, but can be configured with a configuration file.

If you do not need a non-standard document root or userdir configuration, it is recommended that you use the standard suexec helper from the apache2-suexec-pristine package instead.

Installed size: 184 KBHow to install: sudo apt install apache2-suexec-custom

Dependencies:

apache2-suexec-pristine

Provides the standard suexec helper for mod_suexec. This version is compiled with the document root /var/www and the userdir suffix public_html. If you need different configurations, use the apache2-suexec-custom package.

Installed Size: 174 KBHow to install: sudo apt install apache2-suexec-pristine

Dependencies:

apache2-utils

Provides some useful add-on programs for any web server. These include:

  • ab (Apache benchmark tool
  • )

  • fcgistarter (Starting a FastCGI program
  • )

  • logresolve (Resolving IP addresses to hostnames
  • in log files)

  • htpasswd
  • (Manipulating Basic Authentication Files)htdigest (Manipulating Digest Files)

  • htdbm (Manipulating Basic Authentication Files in DBM Format, Using APR
  • )

  • htcacheclean (Clearing Disk Cache
  • )

  • rotatelogs (Periodically stop writing to a log file and open a new one
  • )

  • split-logfile (Split a single log that includes multiple vhosts
  • )

  • checkgid (Checks if the caller can set the log to the specified group
  • )check_forensic (Extract mod_log_forensic output from

  • Apache log
  • files)

  • httxt2dbm (Generate dbm files for use with RewriteMap)

Installed size: 429 KBHow to install: sudo apt install apache2-utils Dependencies

:ab

Apache HTTP Server Benchmarking Tool

[email protected]:~# ab -help ab: incorrect number of arguments Usage:

ab

[options] [http[s]://]hostname[:p ort]/path The options are: -n requests Number of requests to perform -c concurrency Number of multiple requests to be made at once -t timelimit Seconds to max to spend on benchmarking This implies -n 50000 -s timeout Seconds for max. wait for each response The default value is 30 seconds -b window size Send/receive buffer size TCP, in bytes -B address to bind to when making outbound connections -p postal file File containing data to POST. Remember to also set -T -u putfile File containing data in PUT. Remember also to set -T -T content-type Content-type header to use for POST/PUT data, for example. ‘application/x-www-form-urlencoded’ Default value is ‘text/plain’ -v verbosity How much troubleshooting information to print -w Print results in HTML tables -i Use HEAD attributes instead of GET -x String to insert as table attributes -and attributes String to insert as attributes tr -z attributes String to insert as attributes td or th attribute -C Add cookie, Eg. ‘Apache=1234’. (repeatable) -H attribute Add arbitrary header line, for example. ‘Accept-Encoding: gzip’ Inserted after all normal header lines. (repeatable) -An attribute Add basic WWW authentication, the attributes are a username and password separated by a colon. -P attribute Add basic proxy authentication, the attributes are a user name and password separated by a colon. -X proxy:port Proxyserver and port number to use -V Print version number and exit -k Use the HTTP KeepAlive feature -d Do not display percentiles served table. -S Do not show confidence estimators and warnings. -q Do not show progress when making more than 150 requests -l Accept variable document length (use this for dynamic pages) -g filename Output of collected data to the gnuplot format file. -e filename Output CSV file with percentages served -r Do not exit when receiving socket errors. -m method Method name -h Show usage information (this message) -I disable the TLS server name indication extension (SNI) -Z ciphersuite Specify the SSL/TLS cipher suite (see OpenSSL ciphers) -f Protocol Specify the SSL/TLS protocol (SSL2, TLS1, TLS1.1, TLS1.2, TLS1.3, or ALL) -E certfile Specify optional client certificate chain and private key

check_forensic

Tool

to extract mod_log_forensic output from apache log files [email protected]:~# man check_forensic check_forensic(8) System Administrator’s Manual check_forensic(8) NAME check_forensic – tool to extract mod_log_forensic output from Apache log files SYNOPSIS check_forensic <log_file> DESCRIPTION chech_forensic is a simple shell script designed to help Apache administrators extract mod_log_forensic output of the Apache2 log files. Check the forensic log for requests that were not completed and place the request log for each. This manual page was written by Fabio M. Di Nitto <[email protected] bione.net>, for the Debian GNU/Linux system (but can be used by others). check_forensic(8) checkgid Check the gid[email protected]:~# man checkgid CHECKGID(8) CHECKGID System Administrator’s Manual(8) NAME checkgid – check the

gid

SYNOPSIS checkgid group DESCRIPTION This page of the manual briefly documents the

checkgid

command. CheckGid is a program that checks whether you can set the specified group. This is to see if it is a valid group for apache2 to use at runtime. If the user (must run as superuser) is in that group, or can be configured in it, it will return 0. This manual page was written by Daniel Stone <[email protected]> for the Debian GNU/Linux distribution, as the original did not have a manual page. November 3rd, 2001 CHECKGID(8) fcgistarter

Start a FastCGI program

[email protected]:~# fcgistarter -h fcgistarter: illegal option – h usage:

fcgistarter

-c <command> -p <port> [-i <interface> -N <num>] If no interface is specified, any available interface will be used.

htcacheclean

Clear disk cache [email protected]:~# htcacheclean -help htcacheclean error: The -p option must be specified htcacheclean – program to clean

disk cache

. Usage: htcacheclean [-Dvtrn] -pPATH [-lLIMIT] [-LLIMIT] [-PPIDFILE] htcacheclean [-nti] -dINTERVAL -pPATH [-lLIMIT] [-LLIMIT] [-PPIDFILE] htcacheclean [-Dvt] -pPATH URL … Options: -d Daemonize and repeat cache cleaning every INTERVAL minutes. This option is mutually exclusive with the -D, -v and -r options. -D Do a dry run and don’t eliminate anything. This option is mutually exclusive with the -d option. When doing a dry run and deleting directories with -t, the reported inodes deleted in the statistics cannot take into account the deleted directories, and will be marked as an estimate. -v Be detailed and print statistics. This option is mutually exclusive with the -d option. -r Clean thoroughly. This assumes that the Apache web server is not running. This option is mutually exclusive with the -d option and implies -t. -n Be nice. This causes slower processing in favor of other processes. -t Delete all empty directories. By default, only cache files are deleted, however, with some settings, the large number of directories created may require attention. -p Specify PATH as the root directory of the disk cache. -P Specify PIDFILE as the file to write the pid to. -R Specify the amount to round up to. -l Specify LIMIT as the total size limit of the disk cache. Attach ‘K’, ‘M’, or ‘G’ to the number to specify KBytes, MBytes, or GBytes. -L Specify LIMIT as the total limit of disk cache inodes. The suffixes ‘K’, ‘M’ or ‘G’ can also be used. -i Be smart and run only when there was a modification of the disk cache. This option is only possible in conjunction with the -d option. -a List currently cached URLs. Variants of the same URL will be listed once for each variant. -A List the URLs currently stored in the cache, along with their attributes in the following order: url, header size, body size, status, entity version, date, expiration, request time, response time, body present, header request. If a URL is provided on the command line, the URL will be deleted from the cache. A reverse proxy URL consists of the following: http://<hostname>:<port><path>? [Consult]. So, for the path “/” on the host “localhost” and port 80, the URL to be removed becomes “http://localhost:80/?”. Note that the ‘?’ in the URL must always be explicitly specified, whether a query string is present or not. htdbm Manipulate DBM password databases[email protected]:~# htdbm -h htdbm: illegal option – h

htdbm

– program to manipulate

DBM password databases

. Usage: htdbm [-cimBdpstvx] [-C cost] [-TDBTYPE] database username -b[cmBdptsv] [-C cost] [-TDBTYPE] database username password -n[imBdpst] [-C cost] username -nb[mBdpst] [-C cost] username password -v[imBdps] [-C cost] [-TDBTYPE] database username -vb[mBdps] [-C cost] [-TDBTYPE] database username password -x [-TDBTYPE] database username – l [-TDBTYPE] database Options: -c Create a new database. -n Do not update the database; Show results in STDOUT. -b Use the password from the command line instead of prompting for it. -I read the stdin password without verification (for the use of scripts). -m Force MD5 encryption of the password (default). -B Force BCRYPT encryption of password (very secure). -C Set the calculation time used for the bcrypt algorithm (higher is safer but slower, default: 5, valid: 4 to 31). -d Force CRYPT encryption of the password (8 characters maximum, insecure). -s Force SHA encryption of the password (insecure). -p Do not encrypt the password (plain text, insecure). -T DBM Type (SDBM| GDBM| DB|default). -l Display database user names in stdout. -v Verify the username/password. -x Delete the user name record from the database. -t The last parameter is the user name comment. The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.

htdigest

Manage user files for digest authentication

[email protected]:~# htdigest -h Usage: htdigest [-c] passwordfile realm username The -c flag creates a new file.

htpasswd

Manage user files for basic authentication

[email protected]:~# htpasswd -h htpasswd: illegal option – h Usage: htpasswd [-cimBdpsDv] [-C cost] passwordfile username htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password htpasswd -n[imBdps] [-C cost] username htpasswd -nb[mBdps] [-C cost] username password -c Create a new file. -n Do not update file; Show results in STDOUT. -b Use the password from the command line instead of prompting for it. -I read the stdin password without verification (for the use of scripts). -m Force MD5 encryption of the password (default). -B Force bcrypt encryption of password (very secure). -C Set the calculation time used for the bcrypt algorithm (higher is safer but slower, default: 5, valid: 4 to 17). -d Force CRYPT encryption of the password (8 characters maximum, insecure). -s Force SHA encryption of the password (insecure). -p Do not encrypt the password (plain text, insecure). -D Delete the specified user. -v Verify the password of the specified user. On systems other than Windows and NetWare, the ‘-p’ flag will probably not work. The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.

httxt2dbm

Generate dbm

files for use with RewriteMap[email protected]:~# httxt2dbm -h httxt2dbm: illegal option – h Error: Error parsing arguments httxt2dbm – Program to create DBM files for use by RewriteMap Usage: httxt2dbm [-v] [-f format] -i SOURCE_TXT -o OUTPUT_DBM Options: -v More detailed output -i Source text file. If ‘-‘, use stdin. -o DBM output. -f DBM format. If not specified, it will use the default value of APR. GDBM for GDBM files (available) SDBM for SDBM files (available) DB for Berkeley DB files (available) NDBM for NDBM files (not available) default for default DBM type logresolve Resolve IP addresses to hostnames in Apache log files [email protected]:~# logresolve -h logresolve: illegal option – h

logresolve

Resolve IP addresses to hostnames in log files

Apache. Usage: logresolve [-s STATFILE] [-c] Options: -s Log statistics to STATFILE when finished. -c Perform double searches when resolving IP addresses.

rotatelogs

Pipelined log program to rotate Apache

logs[email protected]:~# rotatelogs -h rotatelogs: illegal option – h Usage: rotatelogs [-v] [-l] [-L linkname] [-p prog] [-f] [-D] [-t] [-e] [-c] [-n number] <logfile> {<rotation time in seconds>|<rotation size>(B| K| M|G)} [minute offset from UTC] Add this: TransferLog “|rotatelogs /some/where 86400” or TransferLog “|rotatelogs /some/where 5M” to httpd.conf. By default, the generated name will be <logfile>.nnnn where nnnn is the system time at which logging is nominally started (N.B. if a rotation time is used, the time will always be a multiple of the rotation time, so you can synchronize cron scripts with it). If <logfile> contains strftime conversion specifications, they will be used instead. At the end of each rotation time or when the file size is reached, a new record is started. Options: -v Detailed operation. Messages are written in stderr. -l Base the rotation in local time instead of UTC. -L path Create hard link from the current record to the specified path. -p prog Run the specified program after opening a new log file. See below. -f Force open the program login. -D Create parent directories of the log file. -t Truncate log file instead of spinning, queue friendly. -e Echo recording to stdout for further processing. -c Create record even if it is empty. -n num Rotate file by adding the suffixes ‘.1’, ‘.2’, …, ‘.num’. The program for ‘-p’ is invoked as “[prog] <curfile> [<prevfile>]” where <curfile> is the name of the newly opened log file, and <prevfile>, if given, is the file name of the previously used log file.

split-logfile

Split access to mixed virtual hosts log in to one file per virtual host[email protected]:~# man split-logfile SPLIT-LOGFILE(8) split-logfile SPLIT-LOGFILE(8) NAME split-logfile –

Split the access log to combined virtual hosts into one file per virtual host

SYNOPSIS split-logfile < logfile SUMMARY This script will take a combined web server access log file and split its contents into separate files. It is assumed that the first field on each line is the identity of the virtual host (put there by “%v”), and that the log files should be named that+”.log” in the current directory. The merged log file is read from stdin. Read logs will be mapped to any existing log file. EXAMPLES split-logfile < /var/log/apache2/other_vhosts_access.log Apache HTTP Server 2009-12-06 SPLIT-LOGFILE(8) libapache2-mod-md This is a transition package to apache2 for libapache2-mod-md

users. It can be safely removed after the installation is complete.

Installed size: 6 KBHow to install: sudo apt install libapache2-mod-md

Dependencies:libapache2-mod-proxy-uwsgi This is a transition package to apache2 for

libapache2-mod-proxy-uwsgi

users

. It can be safely removed after the installation is complete.

Installed size: 10 KBHow to install: sudo apt install libapache2-mod-proxy-uwsgi

Dependencies:

Contact US