• 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

a2dissite: command not found

by admin

a2dissite is a command-line utility that is part of the Apache HTTP Server on Linux systems. It is used to disable an Apache virtual host, which is a configuration that defines a group of settings that control how the Apache HTTP Server serves a specific website or group of websites.

To use a2dissite, you must pass it the name of the virtual host configuration file you want to disable. For example, to disable a virtual host with a configuration file named example.conf, you would run the following command:

$ sudo a2dissite example.conf

After running this command, the Apache HTTP Server will no longer serve the website or websites defined in the example.conf configuration file. To re-enable the virtual host, you can use the a2ensite command, which enables a virtual host that has been previously disabled using a2dissite.

It’s important to note that a2dissite and a2ensite only affect the availability of the virtual host. They do not delete or modify the virtual host configuration file itself. To permanently delete a virtual host, you will need to delete the configuration file and any associated files or directories.

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

a2dissite: 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

a2dissite Command Examples

1. Disable a virtual host:

$ sudo a2dissite {{virtual_host}}

2. Don’t show informative messages:

$ sudo a2dissite --quiet {{virtual_host}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. libreoffice: command not found
  2. htop (interactive process viewer) Linux Performance Monitoring tool
  3. bindkey Command Examples (Add keybindings to Z-Shell)
  4. cabal: Command-line interface to the Haskell package infrastructure (Cabal)
  5. How to use “btrfs device” comamnd to add/delete device to/from btrfs filesystem
  6. mkfs.ntfs Command Examples in Linux
  7. getopt: command not found
  8. cake: The command-line processor for the CakePHP framework
  9. wdctl: command not found
  10. pvresize Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright