How to check the Apache version via the shell

November 7, 2023 / How-to Guide

In this guide, you will learn how to check the Apache version via the shell.

Let us follow the steps-

  1. Log in to your server as root using SSH.
  2. Execute the following commands from shell, to find out the version you have installed on your server-
    httpd -v
    OR
    /usr/local/apache/bin/httpd –v
  3. The result will be displayed as-
    root@mybox [~]# httpd -v
    Server version: Apache/2.4.23 (Unix)
    Server built: Oct 3 2016 11:41:41
    Cpanel::Easy::Apache v3.34.6 rev9999 + Cloudlinux
    OR
    root@mybox [~]# /usr/local/apache/bin/httpd -v
    Server version: Apache/2.4.23 (Unix)
    Server built: Oct 3 2016 11:41:41
    Cpanel::Easy::Apache v3.34.6 rev9999 + Cloudlinux

This approach allows you to check the version via the shell. If you encounter any challenges, please do not hesitate to contact our support specialists, who will be more than willing to assist you.

 

Dominos Search