Overview
DreamHost pre-installs several versions of PHP on its servers, each with a different availability status — currently both supported and unsupported versions are available in the panel. This article lists the current PHP versions and how to check which version your server is running.
PHP versions
DreamHost pre-installs the following versions of PHP on its servers:
| PHP Version | Availability |
|---|---|
| PHP 8.5 | Available in the panel |
| PHP 8.4 | Available in the panel |
| PHP 8.3 | Available in the panel |
| PHP 8.2 | Available in the panel |
| PHP 8.1 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 8.0 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 7.4 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 7.3 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 7.2 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 7.1 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 7.0 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
| PHP 5.6 | Available in the panel (unsupported). Officially End-Of-Lifed by php.net. |
Selecting an unsupported version may add PHP Extended Support charges to the account. You can also contact support to have an unsupported version applied to your site.
Please note that PHP versions continually update. You can refer to this page for a timeline of PHP versions.
How do I view the default PHP version on a web server?
To view the default version on your DreamHost server, log into your server via SSH and run the command php -v.
[server]$ php -v
To use a different version when running a shell command, you must specify the full file path:
[server]$ /usr/local/php84/bin/php -v