Knowledge Base
MilesWeb / How-Tos

How To Get Loaded Apache Modules?

Approx. read time : 2 min

It is easy to get the list of loaded Apache modules if you have SSH access to the server. 

The steps include using the httpd command with the -M option. You can obtain the list of loaded Static and Shared Modules by using the -M option.

Add the grep command to check if a specific module is loaded. To check if the SSL module is present, use the following code:

You can use the apache_get_modules PHP function to get the loaded Apache modules if you do not have SSH access to the webserver.

The apache_get_modules method works only if the PHP is installed as an Apache Module (mod_php). Create a PHP file – e.g. apachemodules.php and add the following content and access it in your browser.

Related article: Nginx vs Apache – What’s the Difference and What to Use?

Prajakta Marathe
Prajakta is a content writer at MilesWeb. She is ardent about writing technical and non-technical blogs. Adding value to know-how is what she believes in. She also has good experience in educational field. Gratified in sharing knowledge.