{"id":12413,"date":"2021-11-13T08:49:51","date_gmt":"2021-11-13T08:49:51","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=12413"},"modified":"2022-02-15T11:35:59","modified_gmt":"2022-02-15T11:35:59","slug":"get-the-loaded-apache-modules","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/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.co.uk\/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":[2696,2697],"class_list":["post-12413","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 v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\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.co.uk\/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:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-15T11:35:59+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=\"Estimated 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\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/\",\"name\":\"How To Get Loaded Apache Modules?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-11-13T08:49:51+00:00\",\"dateModified\":\"2022-02-15T11:35:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/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.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Get Loaded Apache Modules?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/e46bb3e1613b47b1975e8635509d1770\",\"name\":\"Prajakta Marathe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9dfa3db3773d6f2f050e32c73f20638d?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9dfa3db3773d6f2f050e32c73f20638d?s=96&d=blank&r=g\",\"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.\",\"url\":\"https:\/\/www.milesweb.co.uk\/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.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/","og_locale":"en_GB","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.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-11-13T08:49:51+00:00","article_modified_time":"2022-02-15T11:35:59+00:00","author":"Prajakta Marathe","twitter_misc":{"Written by":"Prajakta Marathe","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/","name":"How To Get Loaded Apache Modules?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-11-13T08:49:51+00:00","dateModified":"2022-02-15T11:35:59+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/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.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/get-the-loaded-apache-modules\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Get Loaded Apache Modules?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/e46bb3e1613b47b1975e8635509d1770","name":"Prajakta Marathe","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9dfa3db3773d6f2f050e32c73f20638d?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9dfa3db3773d6f2f050e32c73f20638d?s=96&d=blank&r=g","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.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prajakta-marathe\/"}]}},"views":241,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=12413"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12413\/revisions"}],"predecessor-version":[{"id":13440,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/12413\/revisions\/13440"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=12413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=12413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=12413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}