# PHP Versions and Modules
# PHP Versions
Each website has control of its own PHP (opens new window) version. By default, 7.4 is configured on all new websites added to an Enhance cluster. Additional domains mapped to a website (add-on domains) use the same PHP version as the primary (root) domain.
Enhance currently supports the following PHP versions. More are being added.
- PHP 8.2
- PHP 8.1
- PHP 8.0
- PHP 7.4
- PHP 7.3
- PHP 7.2
- PHP 7.1
- PHP 7.0
- PHP 5.6
# PHP Modules
WARNING
Compiling custom PHP modules is not supported. If you require a module which is not included in our standard configuration please email support@enhance.com
The following PHP modules are installed on Enhance by default:
- Redis (PHP 7.0 and above)
- 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 and above)
- Webp (PHP 7.4 and above)
- Imagick
- Mailparse (PHP 7.4 and above)
- PCNTL
- Sockets
- LDAP
# Brotli
Enhance ships with the brotli extension (opens new window) but this is not enabled by default. To enable it:
- Run
/usr/sbin/chrootbuilder
to ensure you have the latest PHP container base images. - In the UI, under developer tools, add a php.ini setting with the directive
extension
and the valuebrotli.so
. - If the extension does not show in phpinfo() immediately, you can force a
restart of the PHP container. Either
pkill -9 -u website_user
or toggle the PHP version in the control panel.