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.