Overview
You can check the installed version of your server's operating system, kernel, Apache or Nginx web server, and other software using SSH commands. This article covers:
Prerequisites
All commands in this article require SSH. Before proceeding, make sure you have configured a Shell user and can log into your server via SSH.
Security, Vulnerabilities, Patches, Updates
DreamHost only uses 'Long Term Support' (LTS) versions of Ubuntu. This means that while the version does not change, your server is always protected since Ubuntu is continually adding security patches to mitigate any vulnerabilities that are discovered. View the following page for more information about Ubuntu releases and their lifecycle:
How do I view my server's operating system version?
The following two commands display the server's operating system version.
The lsb_release command
Run the LSB (Linux Standard Base) command with the -a flag to view your server's operating system version.
[server]$lsb_release -aNo LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 26.04.1 LTS Release: 26.04 Codename: resolute
How do I view the /etc/issue file?
Run the following command to view the contents of the /etc/issue file, which displays your server's operating system version.
[server]$cat /etc/issueUbuntu 26.04.1 LTS
How do I view my server's Linux kernel version?
The uname command
Run the uname command with the -a flag to view all kernel information.
[server]$uname -a
How do I view the /proc/version file?
The /proc/version file displays the kernel version as well as information about the GCC compiler used to build the kernel.
[server]$cat /proc/version
Apache version and status
Run the following to view the version of Apache installed.
[server]$/usr/sbin/apache2 -v
How do I check if Apache is running on a Managed VPS or Dedicated Server?
Managed VPS and Dedicated Servers can run Apache or Nginx. Run the following command to check if Apache is running.
If Apache is running you will see the following output.
If there is no output, Apache is not running. Run the Nginx command below to confirm it is running instead.
[server]$ps -acx | grep apache17513 ? Ss 1:06 apache2 24668 ? S 0:00 apache2 24769 ? Sl 0:16 apache2
Nginx version and status (Managed VPS and Dedicated Servers)
How do I view the version of Nginx installed?
Run the following to view the version of Nginx installed.
Nginx is only available on Managed VPS and Dedicated Servers. This command only shows the version of Nginx installed. It does not confirm if Nginx is running. View the Change your web server to Nginx article for instructions on running Nginx instead of Apache.
[server]$ /usr/sbin/nginx -vHow do I check if Nginx is running?
Run the following command to check if Nginx is running.
If Nginx is running, you will see the following output.
If there is no output, Nginx is not running. Run the Apache command above to confirm it is running instead.
[server]$ps -acx | grep nginx12708 ? Ss 0:02 nginx 26797 ? S 0:00 nginx 26798 ? S 0:00 nginx
Software versions
Run the following commands to view the versions of the following software.
| Software | Command |
|---|---|
| curl | |
| gcc | |
| git | |
| Java | |
| MySQL | Log in to your MySQL server via SSH to run this command. |
| Node.js | |
| OpenSSL | |
| Perl | |
| PHP | |
| Python | |
| Ruby | |
| SSH | |
sqlite
| |
| sqlite3 | |
Package versions on all servers
| Software | Jammy | Noble | Resolute |
|---|---|---|---|
| curl | 7.81.0 | 8.5.0 | 8.18.0 |
| gcc | 11.3.0 | 13.2 | 15.2.0 |
| git | 2.34.1 | 1:2.43.0 | 2.53.0 |
| Java | 1.8.0 | 8u402 | 8u482 |
| Node.js | 12.22.9 | 18.19.1 | 22.22.1 |
| OpenSSL | 3.0.2 | 3.0.13 | 3.5.5 |
| Perl | 5.34.0 | 5.38.2 | 5.40.1 |
| PHP | PHP versions | ||
| Python 2 | 2.7.18 | N/A | N/A |
| Python 3 | 3.10.6 | 3.12.3 | 3.14.3 |
| Ruby | 3.0.2 | 3.2 | 3.3 |
| SSH | 8.9p1 | 9.6p1 | 10.2p1 |
| sqlite | 2.8.17 | N/A | N/A |
| sqlite3 | 3.37.2 | 3.45.1 | 3.46.1 |