: This article describes how to view the modules that apahce has added. For more information about PHP tutorials, see. First, go to the installation directory of apache on the command line. Note that the installation directory is used.
For example, my mac is installed with brew, so the installation file of apahce is:
/usr/local/Cellar/httpd24/2.4.18
Enter the bin directory, which should contain a write command file.
/usr/local/Cellar/httpd24/2.4.18/bin
Then run the following command in the command line:
apachectl -t -D DUMP_MODULES
The modules added to apache are listed.
As follows:
Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_prefork_module (static) php5_module (shared) authn_file_module (shared) authn_core_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_core_module (shared) access_compat_module (shared) auth_basic_module (shared) reqtimeout_module (shared) filter_module (shared) mime_module (shared) log_config_module (shared) env_module (shared) headers_module (shared) setenvif_module (shared) version_module (shared) unixd_module (shared) status_module (shared) autoindex_module (shared) vhost_alias_module (shared) alias_module (shared)
Meaning in brackets:
(Static): The module that apache must add.
(Shared): the modules enabled in the main configuration file of apahce.
The above describes how to view the modules that apahce has added, including the relevant content, and hope to help friends who are interested in PHP tutorials.