PHP Versions and Modules
PHP configurations in Enhance allow you to manage PHP versions, default and supported settings per package, and pre-installed modules.
PHP Versions
Each website has control over its own PHP version. By default, PHP 8.1 is used for all new websites added to an Enhance cluster. Add-on domains will inherit the PHP version of the primary domain.
Enhance supports the following PHP versions:
- PHP 8.3
- PHP 8.2
- PHP 8.1 (default)
- PHP 8.0
- PHP 7.4
- PHP 7.3
- PHP 7.2
- PHP 7.1
- PHP 7.0
- PHP 5.6
Note: Versions 5.6 - 7.4 are end-of-life and should only be used when absolutely necessary, as they expose users to unpatched security vulnerabilities.
PHP Package Settings
You can configure default and supported PHP versions on a per-package basis:
Default PHP Version
Defines the PHP version automatically assigned to new websites in the package.
Supported PHP Versions
Allows users to select from:
- All Current and Future Versions: Automatically includes new PHP versions.
- Customized PHP Versions: Allows manual selection of specific versions.
Key Notes:
- Packages created before August 4, 2023, support all PHP versions by default.
- Retiring a PHP version will not affect existing websites using it unless their version is changed.
- PHP versions 5.6 - 7.3 are not supported by WordPress.
Steps to Configure PHP Versions for a Package:
- Navigate to Settings in the left menu.
- Select Packages.
- Scroll to Features and choose your default and supported PHP versions.
- Save changes by clicking Add Package.
PHP Modules
Enhance includes the following PHP modules by default:
- Redis (PHP 7.0+)
- Curl
- GD, FreeType, XPM
- Zip, Opcache, Mhash, FTP
- Mbstring, Sodium, PDO Sqlite, PDO MySQL
- OpenSSL, Zlib, Exif, Tidy, XSL
- BcMath, XML RPC, IMAP, GMP
- Intl (PHP 7.1+)
- WebP, Mailparse (PHP 7.4+)
- Imagick, PCNTL, Sockets, LDAP
Important: Custom PHP module compilation is not supported. If additional modules are required, contact support@enhance.com.