Viewing your server's software versions - Gregg Hosting

The affects of Web Hosts on Your Business Website

Here're ways your choice of web hosting service provider impacts the performance of your business:


check

Website loading speed

check

Uptime and availability

check

Customer support

check

Security

check

Server location

Viewing your server’s software versions

Viewing your server’s software versions

Overview

This page provides a list of commands for checking the version of various GreggHost software. After logging into a GreggHost server through SSH, run all of the tasks listed in this article.

This article discusses the following topics:

Linux kernel is an operating system.
Apache \sNginx
a variety of software
Viewing the server’s operating system version
The operating system version of the server is displayed by the next two instructions.

The lsb release command is used to release a file.
To see your server’s operating system version, use the LSB (Linux Standard Base) command using the -a flag.

$ lsb release -a [server]
There are no LSB modules available.
Ubuntu’s Distributor ID is:
Ubuntu 18.04.4 LTS (Long Term Support) Release: 18.04
Bionic is the codename for this project.
Take a look at the /etc/issue file.
To see the contents of the /etc/issue file, which lists your server’s operating system version, run the following command.

[server]

/etc/issue cat
Viewing the server’s Linux Kernel version
n l Viewing the Linux Kernel version on the server (Ubuntu 18.04.4 LTS)
The command uname
To see the following, use the uname command with the -a flag:

Name of the kernel and the server
Release of the kernel
Server hardware architecture Kernel version
[Server] Operating System
uname -a Linux gervais 4.14.117-grsec-grsec+ #1 SMP $ uname -a Linux gervais 4.14.117-grsec-grsec+ The time now is 17:15:47 PDT on Friday, May 10th. x86 64 x86 64 x86 64 x86_ GNU/Linux
Take a look at the /proc/version file.
The /proc/version file contains information on the kernel version as well as the GCC compiler that was used to produce it.

[server]

/proc/version /proc/version /proc/version /proc/
([email protected]) Linux version 3.14.52-vs2.3.6.15-1
(Debian 4.9.2-10) gcc version 4.9.2 SMP No. 1 Tuesday, November 2nd, 10:45:38 UTC 2016
Apache version and status
To see what version of Apache is installed, run the command below.

/usr/bin/apache2 -v [server]$
Apache/2.4.29 is the current server version (Ubuntu)
2020-08-12T21:33:25+00:00:00:00:00:00:00:00:00:00:00:00
Check to see if Apache is installed on your VPS or Dedicated Server.
Apache or Nginx can be used on VPS and Dedicated Servers. To see if Apache is running, type the following command.

If Apache is up and running, you’ll see something like this.
Apache is not running if there is no output. Instead, use the Nginx command below to make sure it’s up and running.
[server]
grep $ ps -acx 17513 apache? SNs 1:06 apache2 24668 SNs 1:06 apache2 24668 SNs 1:06 apache2 246 SN 0:00 apache2 24769 SN 0:00 apache2 24769 SN 0:00 apache2 24769 SNl 0:16 SNl 0:16 SNl 0:16 apache2
Version and status of Nginx
Only VPS and Dedicated Servers come with Nginx.

This command only displays the Nginx version on a VPS or Dedicated Server. It doesn’t say whether Nginx is up and running. Instructions for using Nginx instead of Apache on your private server can be found in the following article.

How to Switch to Nginx as Your Web Server
To see what version of Nginx you have installed, do the following command.

nginx version: nginx/1.14.1 $ /usr/sbin/nginx -v
Determine whether Nginx is installed on a VPS or Dedicated Server.
To see if Nginx is running, type the following command.

If Nginx is up and running, you’ll see something like this.
Nginx is not operating if there is no output. Instead, use the Apache command to verify that it is up and functioning.
[server]
grep nginx 12708 | ps -acx nginx 26797? Ss 0:02 nginx 26797? nginx 26798? S 0:00 nginx 26798? nginx nginx nginx nginx nginx
Software versions
After entering into your server through SSH and performing the corresponding command, you can see the versions of the following software.