How to see which modules are loaded by Apache

Source: Internet
Author: User

In doing Apache configuration, the question suddenly comes to mind: is there any way to see what modules Apache has loaded?

Look around and draw the following conclusions:

First of all:

Apache2/bin/apachectl-l
You can see results similar to the following:
Compiled in Modules:
  core.c
  mod_access.c
  mod_include.c
  mod_deflate.c mod_log_config.c MOD_EXPIRES.C
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_cgi.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c
This is a compile-time module that has been compiled in Apache and will naturally load when it starts.

The other part is to look at the LoadModule section of the Apach configuration file (httpd.conf), such as:

LoadModule Php5_module        modules/libphp5.so
This section is also loaded when Apache is started.
The two parts add up to all the modules that are loaded when Apache starts.

PS: On the internet to see a classmate said

./apachectl-t-D Dump_modules
You can list all the loading modules directly, but I'm not here, I don't know if it's because of the environment or the Apache version.
There are better ways to welcome the message.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.