Updating PHP FAQs

PHP 5.6 form errors

PHP 5.6 handles certificates different than previous versions. This may cause your mail form to throw the following warning:

Warning: stream_socket_enable_crypto

View the following article for details on how to fix this warning:

I’m not sure what kind of site I have. What can I do?

Most software packages will show the name of the software in the admin section:

  • To find this info, log into your site as you normally do and search for the software name and version number.
  • If you're unable to find the software name/version, then you may want to contact your web developer and confirm that the site they created is compatible with PHP 5.6.
  • If all else fails, you can always try switching the site to PHP 5.6 and look for any error messages on the site.

What if I have a One-Click Install?

The One-Click Installs have all been tested with PHP 5.6. If you’re running an older version of a one-click install app, DreamHost recommends that you upgrade to the current version.

View the following article for details on how to upgrade your One-Click Install app:

I'm running Zend Optimizer – what do I need to do?

Zend Optimizer changed its name to Zend Guard between PHP version 5.2 and 5.3. Files encoded with Zend Optimizer using PHP 5.2 aren't compatible with Zend Guard using PHP 5.3+. To ensure a smooth transition to 5.5 or above, make sure your files are encoded to work with Zend Guard.

It's rather simple to activate Zend Guard using a custom phprc file, and instructions for that can be found here:

I have a custom site that was built by a developer/designer – what do I need to do?

The only issue would be if you’re using some deprecated functions the newer version of PHP no longer supports. 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 cannot actually rewrite your code for you but they are available for questions.

See also

Did this article answer your questions?

Article last updated .