• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

a2dismod: command not found

by admin

a2dismod is a command used to disable an Apache2 module in Ubuntu. Apache is a popular web server software that is often used to host websites on Linux servers. The a2dismod command is used to disable a specific Apache2 module. For example, if you wanted to disable the mod_rewrite module, you would run the command:

$ sudo a2dismod rewrite

This would disable the mod_rewrite module and prevent it from being loaded when Apache starts. To enable a disabled Apache2 module, you can use the a2enmod command. For example, to enable the mod_rewrite module, you would run:

$ sudo a2enmod rewrite

Keep in mind that you will need to restart Apache for the changes to take effect. You can do this by running the following command:

$ sudo service apache2 restart

If you encounter the below error while running the a2dismod command:

a2dismod: command not found

you may try installing the below package as per your choice of distribution:

OS Distribution Command
Debian apt-get install apache2
Ubuntu apt-get install apache2
Alpine apk add apache2
Kali Linux apt-get install apache2
Raspbian apt-get install apache2

a2dismod Command Examples

1. Disable a module:

$ sudo a2dismod {{module}}

2. Don’t show informative messages:

$ sudo a2dismod --quiet {{module}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. “git tag” Command Examples
  2. How the BASH Shell load its configuration files in Linux
  3. sbatch Command Examples in Linux
  4. uname Command Examples in Linux
  5. How to Set “dev_loss_tmo” Value Persistently Using Udev Rule
  6. How to fix the error “host key verification failed”
  7. dnsspoof: command not found
  8. groupmod: command not found
  9. cpupower Command Examples in Linux
  10. Understanding SELinux Policies in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • glab Command Examples
  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright