Loading modules

Red Hat has moved away from loading modules in the standard httpd.conf file. In the previous release of Red Hat (version 6), the configuration file would have been littered with many LoadModule directives.

These modules are now loaded via the configuration files in /etc/httpd/conf.modules.d/. In this way, the main configuration file is less cluttered and it's easier to drop additional configuration files as and when required.

To view the currently loaded modules from Command Prompt, use the following command:

$ sudo httpd -M

We can see that we have many modules loaded. We can pipe the output to the wc command to count the lines. Using the RHEL 7.1 demonstration system, the output is 82:

$ sudo httpd -M | wc -l

With the original output, ...

Get Learning RHEL Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.