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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. Linux / UNIX : Examples of find command to find files with specific sets of permissions
  2. btrbk Command Examples in Linux
  3. How to cancel or pause live migrations using virsh
  4. CentOS / RHEL : How to add swap file
  5. ac Command Examples in Linux
  6. How to Schedule Tasks Using at in Linux
  7. How to Re-generate initramfs and vmlinuz for Rescue Kernel with Current Kernel in CentOS/RHEL 7
  8. megatools-dl Command Examples in Linux
  9. genfstab: command not found
  10. How to Setup SSH keys for SSH “public/private key” Login On Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright