Overview
DreamHost pre-installs the following versions of PHP on its servers:
- PHP 8.2.0 — Available in the panel
- PHP 8.1.0 — Available in the panel
- PHP 8.0.2 — Available in the panel
- PHP 7.4.15 — No longer available in the panel. Officially End-Of-Lifed by php.net.
- PHP 7.3.27 — No longer available in the panel. Officially End-Of-Lifed by php.net.
- PHP 7.2.34 — No longer available in the panel. Officially End-Of-Lifed by php.net.
- PHP 7.1.33 — No longer available in the panel. Officially End-Of-Lifed by php.net.
- PHP 7.0.33 — No longer available in the panel. Officially End-Of-Lifed by php.net.
- PHP 5.6.40 — No longer available in the panel. Officially End-Of-Lifed by php.net.
Please note that PHP versions continually update. View the following page for a timeline of PHP versions:
Default PHP version on a shared web server
When you run the command php -v in a shell terminal when logged into your server, the output displays the current default version used.
[server]$ php -v
If you wish to use a different PHP version in the Shell, you’ll need to specify the full file path.
[server]$ /usr/local/php82/bin/php -v PHP 8.2.0 (cli) (built: Dec 11 2022 07:26:39) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.0, Copyright (c) Zend Technologies
with Zend OPcache v8.2.0, Copyright (c), by Zend Technologies
These are the current versions you can use via SSH. Older versions are not available on some servers.
/usr/local/php56/bin/php /usr/local/php70/bin/php /usr/local/php71/bin/php /usr/local/php72/bin/php /usr/local/php73/bin/php
/usr/local/php74/bin/php
/usr/local/php80/bin/php
/usr/local/php81/bin/php
/usr/local/php82/bin/php