Background of the article:
When configuring apache, a question suddenly occurred to me. Is there any way for us to check which modules are loaded by apache?
(Related recommendations: apache)
After searching everywhere, I got the following results:
First of all:
apache2/bin/apachectl -l
You can see You will get a result similar to the following:
This is a module that has been compiled in apache during compilation and will be loaded naturally at startup.
The other part depends on the LoadModule part of the apach configuration file (httpd.conf), for example:
LoadModule php5_module modules/libphp5.so
This part will also be loaded when apache starts.
The two parts add up to all the modules loaded when apache starts.
PS: I saw some classmates on the Internet saying that
./apachectl -t -D DUMP_MODULES
can directly list all loaded modules, but I can't do it here. I don't know if it is due to the environment or the apache version.
If you want to know more related knowledge, you can visit php Chinese website.
The above is the detailed content of What is the way to see which modules are loaded by apache. For more information, please follow other related articles on the PHP Chinese website!