PHP

Verëffentlecht den 30 July 2025

By default all new websites will automatically inherit the default php version set at a package level. Each website can run a different php version which can be updated at any point. The PHP versions available to a website are also determined by its package settings.

Change PHP version

To change a website’s php version:

  1. Open Websites in the left sidebar
  2. Select the website you would like to update the php version on
  3. When the website dashboard loads select Advanced in the top navigation
  4. Select Developer tools
Enhance website dashboard with Developer tools selected
  1. Scroll to PHP
Enhance Developer tools PHP settings
  1. Select your preferred PHP version from the drop-down
Enhance PHP version dropdown
  1. A confirmation modal will load. Select Update to finish.
Enhance Update PHP version confirmation dialog

TIP

The IonCube loader is not available on PHP 8.0 and 8.3

Restart PHP

Each primary website on Enhance has its own PHP container. It is possible to restart this container without impacting other websites on your Enhance account.

Restarting a website’s PHP container will reload the php.ini and the redis.conf for this site and its addon, aliases and subdomains. It will also terminate any stuck PHP workers and allow for new requests to be served.

To restart a website’s php container:

  1. Open Websites in the left sidebar
  2. Select the website whose PHP service you want to restart.
  3. When the website dashboard loads select Advanced in the top navigation
  4. Select Developer tools
Enhance website dashboard with Developer tools selected
  1. Scroll to PHP
Enhance Developer tools PHP settings
  1. Under ‘Restart PHP container’ click Restart
Enhance PHP settings with Restart highlighted
  1. A confirmation modal will load. Select Restart.

WARNING

The website will be offline while the PHP service restarts.

Enhance Restart PHP container confirmation dialog

War dësen Artikel hëllefräich?

Leave a Reply

Your email address will not be published. Required fields are marked *