{"id":14055,"date":"2023-04-20T07:43:19","date_gmt":"2023-04-20T07:43:19","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=14055"},"modified":"2023-06-22T08:01:15","modified_gmt":"2023-06-22T08:01:15","slug":"how-to-check-which-apache-modules-are-enabled-or-loaded-in-linux","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-check-which-apache-modules-are-enabled-or-loaded-in-linux\/","title":{"rendered":"How to Check Which Apache Modules are Enabled or Loaded in Linux"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-1024x578.png\" alt=\"apache\" width=\"1024\" height=\"578\" class=\"alignnone size-large wp-image-14094 img-fluid lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-1024x578.png 1024w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-300x169.png 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-128x72.png 128w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-420x237.png 420w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-540x305.png 540w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-720x406.png 720w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-960x542.png 960w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-1140x644.png 1140w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-1320x745.png 1320w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache-1275x720.png 1275w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/04\/apache.png 1410w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/578;\" \/><\/p>\n<p><a href=\"https:\/\/webhostinggeeks.com\/blog\/apache-http-server-explained\/\">Apache<\/a> is a widely used <a href=\"https:\/\/webhostinggeeks.com\/best\/web-server\/\">web server<\/a> that offers flexibility through its modular architecture. Modules extend Apache&#8217;s core functionality, and administrators can enable or disable them based on their requirements. Sometimes, you may need to check which modules are enabled or loaded on your Apache server to troubleshoot issues or optimize your web server configuration.<\/p>\n<p>In this step-by-step guide, we will show you how to check which Apache modules are enabled or loaded on a Linux system. By following these steps, you can get a better understanding of your web server configuration and make informed decisions about enabling or disabling specific modules.<\/p>\n<h2>Step 1: Use the apachectl Command<\/h2>\n<p>The apachectl command is a versatile utility for managing the Apache web server, and it can also display information about the loaded modules. To list all enabled modules, use the following command:<\/p>\n<pre>\r\nsudo apachectl -M\r\n<\/pre>\n<p>This command will output a list of enabled modules on your Apache web server.<\/p>\n<h2>Step 2: Check Configuration Files (Alternative Method)<\/h2>\n<p>Alternatively, you can check the Apache configuration files to see which modules are enabled. The location of these files may vary depending on your Linux distribution, but in general, they can be found within the \/etc\/apache2 directory.<\/p>\n<p>Go to the Apache configuration directory:<\/p>\n<pre>\r\ncd \/etc\/apache2\r\n<\/pre>\n<p>Check the contents of the mods-enabled directory, which contains symbolic links to the enabled modules:<\/p>\n<pre>\r\nls mods-enabled\r\n<\/pre>\n<p>This command will list all the enabled modules, with their corresponding configuration and load files.<\/p>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">apachectl<\/span> &#8211; Apache control command for managing the Apache web server<\/li>\n<li><span class=\"fw-bold\">cd<\/span> &#8211; Change the current directory<\/li>\n<li><span class=\"fw-bold\">ls<\/span> &#8211; List directory contents<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>In this guide, we have demonstrated how to check which Apache modules are enabled or loaded on a Linux system using two different methods: the apachectl command and by checking the configuration files. Understanding the enabled modules in your Apache web server is essential for troubleshooting, optimization, and configuring your server to meet your specific needs.<\/p>\n<p>Remember that enabling unnecessary modules may consume extra resources and potentially introduce security vulnerabilities. It is good practice to review your enabled modules periodically and ensure that only the required modules are enabled for your web server configuration.<\/p>\n<p>If you have any questions, comments, or suggestions for improvement, please feel free to share your thoughts in the comments section below. Your feedback helps us create better and more informative content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache is a widely used web server that offers flexibility through its modular architecture. Modules extend Apache&#8217;s core functionality, and administrators can enable or disable them based on their requirements&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":14094,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103],"tags":[1199,2079],"class_list":["post-14055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-apache","tag-apache-module"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/14055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=14055"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/14055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/14094"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=14055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=14055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=14055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}