apache version
Linux

How to find out Apache version on Linux

Apache version can be checked easily from the command line, the command used depends on the Linux distribution. In this guide we will check the apache version on CentOS and on Ubuntu.

Apache version on CentOS :

On CentOS we use the command below :

[root@srvCentOS ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 2 2020 13:13:23

Apache version on Ubuntu :

You can use the following command :

[root@srvUbuntu~]# apache2ctl -v
Server version: Apache/2.2.16 (Ubuntu)
Server built: May 12 2020 13:58:20

Or for more information :

[root@srvUbuntu~]# apachectl -V
Server version: Apache/2.2.16 (Ubuntu)
Server built: May 12 2020 13:59:20
Server's Module Magic Number: 20200213:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.3
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Architecture: 32-bit
Server MPM: prefork
threaded: no
forked: yes (variable process count)

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *