PHP

About

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


Change PHP Version

To change a website's PHP version:

  1. Open Websites in the left sidebar.
  2. Select the website you want to update the PHP version for.
  3. On the website dashboard, click Advanced in the top navigation.
  4. Select Developer tools.

    This is the alt tag?

  5. Scroll to PHP.

    This is the alt tag?

  6. Select the preferred PHP version from the dropdown.

    This is the alt tag?

  7. A confirmation modal will appear. Click Update to finish.

    This is the alt tag?

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. You can restart this container without affecting other websites on your Enhance account. Restarting will reload the php.ini and redis.conf for the site and its addon, alias, and subdomain domains. 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 you want to restart the PHP container for.
  3. On the website dashboard, click Advanced in the top navigation.
  4. Select Developer tools.
  5. Scroll to PHP.
  6. Under Restart PHP container, click Restart.

    This is the alt tag?

  7. A confirmation modal will appear. Click Restart.

    This is the alt tag?

Warning: The website will be offline while the PHP service restarts.

Was this answer helpful? 0 Users Found This Useful (0 Votes)