Install Apache Module
Apache supports a large number of modules, by default, modules are located in the /etc/httpd/modules/ directory. Configuration directives for the default modules are located in /etc/httpd/conf/httpd.conf, while configuration options for optional modules installed with yum are generally placed in .conf files in /etc/httpd/conf.d/.
To see if a module is enabled, look in “conf” files for lines beginning with LoadModule statements. The following two grep commands should generate a list of currently available modules:
grep ^LoadModule /etc/httpd/conf/httpd.conf grep ^LoadModule /etc/httpd/conf.d/*
To disable an existing module (at your own risk) edit the file in question, and comment out the LoadModule statement by prefixing the line with a hash (e.g. #).
To get a list of available Apache modules modules in the CentOS repository use the following commands:
yum search mod_
You can then install one of these modules with the command:
yum install mod_[module-name
Modules should be enabled and ready to use following installation, though you may have to apply additional configuration options to have access to the modules’ functionality. Consult the Apache Module Documentation for more information regarding the configuration of specific modules.
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
No votes so far! Be the first to rate this post.