Skip to content

PHP version, extensions and error log

Change a website’s PHP version, switch optional PHP extensions on, read the PHP error log and restart PHP.

What you can do

  • Change the PHP version of a website
  • See which PHP extensions are built in, and switch optional ones on or off
  • Read the latest entries of the PHP error log in the panel
  • Restart PHP for the website

What you cannot do

  • Choose a PHP version your package does not allow. The panel replies "This PHP version is not allowed by your subscription" (Depends on your package.) Instead: ask your hosting provider to allow the version you need.
  • Set a different PHP version for each domain on the same website. The version applies to the whole website, including addon domains and subdomains (Not available in the panel.) Instead: put the other domain on its own website.
  • Install PHP extensions that are not in the built-in or configurable lists (Only your hosting provider can do this.)

Depends on your package

  • Which PHP versions are offered

All of these are under Advanced > Developer tools, in the PHP section.

  1. Open the website and select Advanced > Developer tools.
  2. Under Change the PHP version for your website, open the version list and choose a version. Labels such as LATEST and LTS show the newest and the long-term-support versions.
  3. The website switches to the new version.

Check with the developers of your application which PHP version it needs. After changing version, load your website and check the error log below.

The website’s current PHP version is also shown on the website overview under At a glance, and in the Websites list.

  • Built-in extensions are always on. They include common ones such as curl, gd, imagick, intl, mbstring, mysqli, opcache, pdo_mysql, redis, soap, sodium, xml and zip.
  • Configurable extensions can be switched on or off for your website. On the tested version these were apcu, brotli, oauth, pdo_dblib, pdo_pgsql, pgsql and xmlrpc.

The lists depend on the PHP version you have selected.

The php-error.log panel shows the most recent PHP errors and warnings for the website, with the time it was last refreshed. If nothing has gone wrong it says “No PHP errors logged since restart”.

Use this first when your website shows a blank page or a “500” error.

  1. Select Restart at the top of the PHP section.
  2. Confirm.

This restarts the website’s PHP container and reloads php.ini and redis.conf for the website and its addon domains. The website is offline for a moment while it restarts.

To restart everything for the website, including SSH sessions and worker processes, use Restart container on the website overview. See Website overview.

Checked against Enhance 12.28.0 on 2026-12-01: tested directly in the panel.