GoDaddy Help

Check service versions on my VPS Linux server

Use these commands to check different versions of commonly installed services on your Linux Server on AlmaLinux, CentOS, Ubuntu, and Fedora.

AlmaLinux/CentOS/Fedora

Apache: /usr/sbin/httpd -v or httpd -v

Server version: Apache/2.4.6 (CentOS) Server built: May 30 2023 14:01:11


Apache on cPanel: /usr/local/apache/bin/httpd -v

Server version: Apache/2.4.58 (cPanel) Server built: Jan 24 2024 00:14:47


Curl: rpm -q curl

curl-7.61.1-33.el8.x86_64


Bash: bash --version

GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http: gnu.org="" licenses="" gpl.html=""></http:>


Exim on cPanel: exim -bV

Exim version 4.96.2 #2 built 27-Dec-2023 11:01:49


Glibc: ldd --version or ls /lib/libc-*

ldd (GNU libc) 2.28


Kernel: uname -r

4.18.0-425.10.1.el8_7.x86_64


PHP on cPanel: php -v

PHP 8.1.27 (cli) (built: Jan 24 2024 00:32:48) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.27, Copyright (c) Zend Technologies


PHP on Plesk: find /opt/plesk/php/*/bin/php

/opt/plesk/php/7.4/bin/php /opt/plesk/php/8.0/bin/php


MySQL: mysql --version or mysql -v

Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 15521 Server version: 8.0.36 MySQL Community Server - GPL


AlmaLinux/CentOS/Fedora: cat /etc/redhat-release

AlmaLinux release 8.9 (Midnight Oncilla)

Ubuntu

Apache: /usr/sbin/apache2 -v or apache2 -v

Server version: Apache/2.4.52 (Ubuntu) Server built: 2023-10-26T13:44:44


Curl: curl --version

curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0


Bash: bash --version

GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http: gnu.org="" licenses="" gpl.html=""></http:>


GLibc: ldd --version

ldd (Ubuntu GLIBC 2.35-0ubuntu3.4) 2.35 Copyright (C) 2022 Free Software Foundation, Inc.


Kernel: uname -r

5.15.0-89-generic


PHP: php --version

PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies


MySQL: mysql --version

mysql Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper


Ubuntu: lsb_release -a

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy

Other

OpenSSL: openssl version

OpenSSL 1.1.1k FIPS 25 Mar 2021


Pear: pear info pear | grep Version
Plesk: cat /usr/local/psa/version
Qmail: man qmail | grep version (This assumes any upgrades installed MAN pages.)
sshd: /usr/sbin/sshd -v

More info

These are just some of the commands to check versions of commonly installed software/services. There are many more software/services out there that can be installed. You can check the version by running this:

rpm -qa | grep XXXsoftwarenameXXX