What is the way to see which modules are loaded by apache

王林
Release: 2020-12-03 15:45:48
forward
4234 people have browsed it

What is the way to see which modules are loaded by apache

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
Copy after login

You can see You will get a result similar to the following:

What is the way to see which modules are loaded by apache

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
Copy after login

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
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template