Thursday, September 18, 2014

How to check loaded and compiled modules in HTTPD in Linux?

Read full details here: How to check loaded and compiled modules in HTTPD in Linux?

This is a very common question and sometimes hard to find answer. How do you check which Apache modules are loaded in your HTTP / Apache server? The second part is, how do you check which modules are compiled and ready to be loaded? Following two commands will show you you can easily check loaded and compiled modules in HTTPD or Apache2 in any flavour of Linux such as CentOS, Ubuntu, Fedora, RedHat etc.

Find list of loaded modules in HTTPD Apache
Use the following command to list Loaded modules in your Apache/HTTPD server in Linux
root@centos [~]# httpd -D DUMP_MODULES
(or)
user@centos [~]# sudo httpd -D DUMP_MODULES
(or)
user@ubuntu [~]# sudo apache2 -D DUMP_MODULES
Depending on your Linux distro, you need to use either httpd or apache2. Also use ‘sudo’ if you’re not logged in as root user.

Sample loaded modules in Apache

Loaded Modules:
 core_module (static)
 include_module (static)
 proxy_module (static)
 proxy_connect_module (static)
 http_module (static)
 autoindex_module (static)
 info_module (static)
 cloudflare_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 pagespeed_module (shared)
Syntax OK


Read the rest of it here: How to check loaded and compiled modules in HTTPD in Linux?

No comments:

Post a Comment