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)
nmap : les 12 commandes que vous devez connaître
Protocole du routage
Résoudre l’erreur : WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
pgrep apprendre à l’utiliser avec des exemples
Fail2Ban : How to protect Linux services