What versions of PHP are available at DreamHost?

DreamHost pre-installs the following versions of PHP on its servers:

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. Use the following for PHP 7.1:

[server]$ /usr/local/php71/bin/php -v 

PHP 7.1.5 (cli) (built: May 18 2017 20:23:22) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

These are the current versions you can use via SSH:


See also

Did this article answer your questions?

Article last updated .