https://system.sangkrit.net/products/dedicated-server

Testing Linux, Apache, MySQL, & PHP On Your VPS Or Dedicated Server

In the previous lesson, you learned about configuring the super admin access to your server.

Next, while launching a new web application project or a simple website you will need to make sure that the server versions of Linux, Apache, MySQL, and PHP are compatible with the application you like to build or install on your VPS or Dedicated Server.

At SANGKRIT.net, you always get an up-to-date server so you won’t be facing any such compatibility issues here. But, there are commands to check different versions of commonly installed services on your LAMP Server (VPS or Dedicated) running CentOS, Ubuntu, or Fedora.

Simply run these commands to check your versions of Linux, Apache, MySQL & PHP:

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

Server version: Apache/2.2.29 (Unix) Server built: Oct 9 2020 11:35:25 Cpanel::Easy::Apache v3.26.8 rev9999


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

Server version: Apache/2.2.29 (Unix) Server built: Oct 9 2020 11:35:25 Cpanel::Easy::Apache v3.26.8 rev9999


Curl: rpm -q curl

curl-7.19.7-40.el6_6.3.x86_64


Bash: bash –version

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


Exim: exim -bV

Exim version 4.84 #2 built 9-Oct-2020 15:02:41


Glibc: ls /lib/libc-*

/lib/libc-2.12.so*


Kernel: uname -r

2.6.32-042stab093.5


PHP: php -v

PHP 5.4.33 (cli) (built: Oct 7 2014 11:48:26) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies


MySQL: mysql -v

Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 213432 Server version: 5.5.40-cll MySQL Community Server (GPL)


CentOS/Fedora: cat /etc/redhat-release

CentOS release 7.6 (Final)

Here, Linux is the operating system you are using on your VPS or Dedicated Server, Apache is the most popular HTTP server used on the public internet, MySQL is the database that contains all text and password information of your website and PHP is the programming language used to code web applications.

These most commonly used services need to work on your server so that you can build websites and web applications on your domains.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.