• 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

a2query: command not found

by admin

a2query is a command-line tool that is used to manage the Apache HTTP Server on Ubuntu and other Linux-based systems. It allows you to view, modify, and configure various aspects of the Apache web server, such as virtual hosts, modules, and directories.

To use A2query, you need to have the Apache HTTP Server installed on your system and be logged in as a user with sufficient privileges to modify Apache configuration.

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

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

a2query Command Examples

1. List enabled Apache modules:

# a2query -m

2. Check if a specific module is installed:

# a2query -m module_name

3. List enabled virtual hosts:

# a2query -s

4. Display the currently enabled Multi Processing Module:

# a2query -M

5. Display the Apache version:

# a2query -v

For more information about A2query and its usage, you can consult the Apache HTTP Server documentation or run the command man a2query to view the A2query manual page.

Filed Under: Linux

Some more articles you might also be interested in …

  1. ldd Command Examples in Linux
  2. scrot: command not found
  3. httpd Command Examples in Linux
  4. sshpass Command: Non-interactive Password Authentication with SSH
  5. aurman Command Examples
  6. Rabbitmq install and management
  7. keep-header Command Examples
  8. debsecan Command Examples in Linux
  9. Linux OS Service ‘winbind’
  10. flutter: Google’s free, open source, and cross-platform mobile app SDK

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright