Overview
The following provides the latest information on PHP versions that are used on DreamHost servers.
PHP versions
DreamHost pre-installs the following versions of PHP on its servers:
PHP Version | Availability |
---|---|
PHP 8.3 |
Available in the panel |
PHP 8.2 | Available in the panel |
PHP 8.1 | Available in the panel |
PHP 8.0 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 7.4 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 7.3 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 7.2 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 7.1 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 7.0 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
PHP 5.6 | No longer available in the panel. Officially End-Of-Lifed by php.net. |
Please note that PHP versions continually update. You can refer to this page for a timeline of PHP versions.
Viewing 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/php82/bin/php -v