Reading Time: 2 minutes
The Apache web server is one of the most popular and powerful web servers in the world, due in part to its ease of administration and flexibility. This flexibility comes Apache’s modular design. The modules allow for Apache to perform additional functions, such as natively rewriting URLs to support SSL encryption
. This allows administrators to modify Apache to meet their needs; adding modules that are needed and removing ones that are not.
How it works
Apache modules are installed like any other piece of software. Fortunately Apache comes with a number of common modules and cPanel’s EasyApache script has the option to easily install more. By default, Liquid Web sets up Apache with most of the more common Apache modules such as mod_headers and mod_expires.
Before you install a module, you’ll want to see if the module you need is already installed. All you have to do is ssh into your server and run the following command:
The output of that command will give you a list of all of the Apache modules running on the server:
root@host [~]# httpd -M
Please note that this will vary depending on what modules you have installed and will not look exactly like the above example. Also note that PHP-specific modules such as GD and pdo will not show up in this list, as they are not Apache modules.
If the module you want is not listed, it will need to be installed. This is as simple as running cPanel’s EasyApache script from either Web Host Manager (WHM) or the command line. EasyApache can be accessed in WHM via the Software section. From command line, running EasyApache requires only the following command.
If you are unsure whether you need to run EasyApache or if you are uncomfortable with doing this yourself, please contact Heroic Support®
and we would be more than happy to take care of it for you.
Apache’s modular design allows for a great degree of flexibility, and the ability to only use resources on the features and functions you need. With the commands provided in this article, determining whether a module you need is installed should be much easier.