Updating PHP overview

Overview

It is sometimes necessary to update the version of PHP on your website. This is often due to a version no longer being supported by php.net and to ensure your website remains secure. View the links below for information on what PHP versions are currently available at DreamHost and how to update the version of your site:

This article explains how to check the code of your site and determine if it's compatible with the newer versions of PHP.

How do I know if my type of website is compatible with the latest PHP versions?

It's important to keep your website updated so it can function with the latest updates to PHP. To confirm if your site is compatible with the supported PHP versions in the panel, you must first confirm how your site was built. The following sections give you a few examples of how to determine this.

One-Click Installs

DreamHost offers several types of One-Click installs you can use to quickly build your website. The following page lists current options available in the panel.

It's important to keep your One-Click installs up to date. You can do this in the panel by using the steps described in the following article:

On the One-Click Installs page, you can view any previously installed on your sites:

one-click version number

This example shows a WordPress site running version 5.3.2. You can then check the software's official website to check which PHP versions are compatible with this version of the software. For example, the following links help you determine which versions will function with your installation:

Non One-Click Installs

You may have also manually installed a software program to run your site which is not a One-Click Install from the DreamHost panel. In this case, simply log into the dashboard of your website to check the version. Then, visit the official website to confirm which versions of PHP are compatible with it.

Custom site built by a developer

The most common issue with custom sites is outdated code. For example, your site may be using deprecated functions that the newer version of PHP no longer supports. In this case, the site will continue to function, but you may see PHP warnings.

If the function has been removed from the newer versions of PHP, your site may not function. You can search for the function at php.net. Its page will confirm which versions of PHP still support it.

Please bear in mind that DreamHost support is unable to rewrite your code for you, but they are available for any questions you may have.

See also

Did this article answer your questions?

Article last updated PST.