{"id":14754,"date":"2021-11-13T08:49:54","date_gmt":"2021-11-13T08:49:54","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=14754"},"modified":"2022-02-15T17:05:21","modified_gmt":"2022-02-15T11:35:21","slug":"get-the-loaded-apache-modules","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/","title":{"rendered":"How To Get Loaded Apache Modules?"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">It is easy to get the list of loaded Apache modules if you have SSH access to the server.\u00a0<\/span><\/p>\n<p><span data-preserver-spaces=\"true\">The steps include using the <em>httpd<\/em> command with the\u00a0<\/span><strong><span data-preserver-spaces=\"true\">-M<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0option. You can obtain the list of loaded Static and Shared Modules by using the <strong>-M<\/strong> option.<\/span><\/p>\n<pre class=\"lang:default decode:true \"># httpd -M<\/pre>\n<pre class=\"lang:default decode:true \">root@web [~]# httpd -M\nLoaded Modules:\n core_module (static)\n so_module (static)\n http_module (static)\n mpm_event_module (shared)\n systemd_module (shared)\n lsapi_module (shared)\n cgid_module (shared)\n access_compat_module (shared)\n actions_module (shared)\n alias_module (shared)\n auth_basic_module (shared)\n authn_core_module (shared)\n authn_dbm_module (shared)\n authn_file_module (shared)\n authn_socache_module (shared)\n authz_core_module (shared)\n authz_groupfile_module (shared)\n authz_host_module (shared)\n authz_user_module (shared)\n autoindex_module (shared)\n dbd_module (shared)\n deflate_module (shared)\n dir_module (shared)\n expires_module (shared)\n filter_module (shared)\n headers_module (shared)\n include_module (shared)\n log_config_module (shared)\n logio_module (shared)\n mime_module (shared)\n negotiation_module (shared)\n proxy_module (shared)\n proxy_http_module (shared)\n proxy_wstunnel_module (shared)\n reqtimeout_module (shared)\n rewrite_module (shared)\n setenvif_module (shared)\n slotmem_shm_module (shared)\n socache_dbm_module (shared)\n socache_shmcb_module (shared)\n socache_redis_module (shared)\n status_module (shared)\n suexec_module (shared)\n unique_id_module (shared)\n unixd_module (shared)\n userdir_module (shared)\n bwlimited_module (shared)\n ssl_module (shared)\n http2_module (shared)\n security2_module (shared)\nroot@web [~]#<\/pre>\n<p>Add the\u00a0<em><code>grep\u00a0<\/code><\/em>command to check if a specific module is loaded. To check if the SSL module is present, use the following code:<\/p>\n<pre class=\"lang:default decode:true \"># httpd -M | grep ssl<\/pre>\n<pre class=\"lang:default decode:true \">[root@web ~]# httpd -M | grep ssl\n ssl_module (static)\n[root@web ~]#<\/pre>\n<p>You can use the\u00a0<code>apache_get_modules<\/code>\u00a0PHP function to get the loaded Apache modules if you do not have\u00a0SSH access to the webserver.<\/p>\n<p>The\u00a0<code>apache_get_modules\u00a0<\/code>method works only if the PHP is installed as an Apache Module (mod_php). Create a PHP file \u2013 e.g. apachemodules.php and add the following content and access it in your browser.<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\n\/\/ prints Apache Modules - works only if the PHP is installed as an Apache Module\necho 'The Apache Modules found on the server are:&lt;\/br&gt;';\n\nprint_r(apache_get_modules());\n\n?&gt;<\/pre>\n<p>Related article:\u00a0<a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/nginx-vs-apache\/\" target=\"_blank\" rel=\"noopener\">Nginx vs Apache &#8211; What&#8217;s the Difference and What to Use?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is easy to get the list of loaded Apache modules if you have SSH access to the server.\u00a0 The steps include using the httpd command with the\u00a0-M\u00a0option. You can obtain the list of loaded Static and Shared Modules by using the -M option. # httpd -M root@web [~]# httpd -M Loaded Modules: core_module (static) [&hellip;]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[2717,2718],"class_list":["post-14754","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","tag-apache-modules","tag-get-loaded-apache-modules"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Get Loaded Apache Modules?<\/title>\n<meta name=\"description\" content=\"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Get Loaded Apache Modules?\" \/>\n<meta property=\"og:description\" content=\"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-13T08:49:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-15T11:35:21+00:00\" \/>\n<meta name=\"author\" content=\"Prajakta Marathe\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prajakta Marathe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/\"},\"author\":{\"name\":\"Prajakta Marathe\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/e46bb3e1613b47b1975e8635509d1770\"},\"headline\":\"How To Get Loaded Apache Modules?\",\"datePublished\":\"2021-11-13T08:49:54+00:00\",\"dateModified\":\"2022-02-15T11:35:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/\"},\"wordCount\":145,\"commentCount\":0,\"keywords\":[\"Apache modules\",\"get loaded apache modules\"],\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/\",\"name\":\"How To Get Loaded Apache Modules?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\"},\"datePublished\":\"2021-11-13T08:49:54+00:00\",\"dateModified\":\"2022-02-15T11:35:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/e46bb3e1613b47b1975e8635509d1770\"},\"description\":\"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/get-the-loaded-apache-modules\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Get Loaded Apache Modules?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/e46bb3e1613b47b1975e8635509d1770\",\"name\":\"Prajakta Marathe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/prajakta_marathe-min-150x150.jpeg\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/prajakta_marathe-min-150x150.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/prajakta_marathe-min-150x150.jpeg\",\"caption\":\"Prajakta Marathe\"},\"description\":\"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.\",\"sameAs\":[\"https:\\\/\\\/www.milesweb.in\"],\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/author\\\/prajakta-marathe\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Get Loaded Apache Modules?","description":"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/","og_locale":"en_US","og_type":"article","og_title":"How To Get Loaded Apache Modules?","og_description":"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-11-13T08:49:54+00:00","article_modified_time":"2022-02-15T11:35:21+00:00","author":"Prajakta Marathe","twitter_misc":{"Written by":"Prajakta Marathe","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/"},"author":{"name":"Prajakta Marathe","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/e46bb3e1613b47b1975e8635509d1770"},"headline":"How To Get Loaded Apache Modules?","datePublished":"2021-11-13T08:49:54+00:00","dateModified":"2022-02-15T11:35:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/"},"wordCount":145,"commentCount":0,"keywords":["Apache modules","get loaded apache modules"],"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/","name":"How To Get Loaded Apache Modules?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2021-11-13T08:49:54+00:00","dateModified":"2022-02-15T11:35:21+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/e46bb3e1613b47b1975e8635509d1770"},"description":"The knowledge base explains the steps to get loaded apache modules. Get the loaded apache modules easily with having SSH access to the server.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Get Loaded Apache Modules?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/e46bb3e1613b47b1975e8635509d1770","name":"Prajakta Marathe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/02\/prajakta_marathe-min-150x150.jpeg","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/02\/prajakta_marathe-min-150x150.jpeg","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2021\/02\/prajakta_marathe-min-150x150.jpeg","caption":"Prajakta Marathe"},"description":"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.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/prajakta-marathe\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14754"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14754\/revisions"}],"predecessor-version":[{"id":15877,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14754\/revisions\/15877"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}