The Apache web server is one of the most popular and powerful web servers in the world, due to its ease of administration and flexibility. This flexibility comes Apache’s modular design. The modules allow for Apache to provide URL rewriting to SSL encryption natively. 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 prebuilt with a number of common modules and cPanel’s EasyApache script has the option to easily install more. By default, Liquidweb sets up Apache with most of the more common Apache modules such as mod_headers and mod_expires.
Before you install the 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. httpd -M will give you an output like the following:
root@plastic [~]# 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 the Web Host Manager (WHM) or the command line. EasyApache can be accessed in WHM via the Software Section. With command line, running the EasyApache is as easy as running the following command.
If you are unsure if you need to run an EasyApache or if you are uncomfortable with doing this yourself, please contact our 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 only using resources on features and functions you need. With the commands provided in this article, determining if a module you need is installed should be much easier. As always, please feel free to contact Heroic Support for help.
Liquid Web’s Heroic Support is always available to assist customers with this or any other issue. If you need our assistance please contact us:
Toll Free 1.800.580.4985