Categories
apache debian version

Version of Apache installed on a Debian machine

327

How can I check which version of Apache is installed on a Debian machine?

Is there a command for doing this?

2

  • 4

    Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See What topics can I ask about here in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask. Also see Where do I post questions about Dev Ops?.

    – jww

    May 28, 2016 at 4:04

  • @jww administration of Apache is fundamental to development for many developers. Currently this page has been viewed 473k times which suggests it is useful. Most of those views will have been by people engaged in programming and development and I expect they found it useful. I am one of them.

    Jun 9 at 15:34

153

This works for my Debian:

$ /usr/sbin/apache2 -v

0

    34

    You should use apache2ctl -v or apache2 -v for newer Debian or Ubuntu distributions.

    apache:/etc/apache2# apache2ctl -v
    Server version: Apache/2.2.16 (Debian)
    Server built:   May 12 2011 11:58:18
    

    or you can use apache2 -V to get more information.

    apache2 -V
    Server version: Apache/2.2.16 (Debian)
    Server built:   May 12 2011 11:58:18
    Server's Module Magic Number: x
    Server loaded:  APR 1.4.2, APR-Util 1.3.9
    Compiled using: APR 1.2.12, APR-Util 1.3.9
    Architecture:   64-bit
    Server MPM:     Worker
      threaded:     yes (fixed thread count)
        forked:     yes (variable process count)
    Server compiled with....
    

    1

    • Either upper -V or lowercase -v is ok but you may need to use sudo unless you’re logged in as root.

      – sdexp

      Jul 1, 2018 at 14:28