User

PHP Extensions

Enabling and disabling PHP extensions per domain in Opterius Hosting Mode.

Last updated 1775606400

Go to Hosting Mode → PHP → [domain] → Extensions.

You will see a list of available PHP extensions for the domain's active PHP version. Each extension has an enabled/disabled toggle. Changes apply immediately — the FPM pool is reloaded after you save.

Common Extensions

Extension Used For
gd Image processing (resize, crop, watermark)
imagick ImageMagick bindings — more capable than gd
mbstring Multi-byte string handling — required by most frameworks
intl Internationalization functions
zip ZIP file creation and extraction
redis Redis client for PHP — used for caching and sessions
memcached Memcached client
opcache Bytecode cache — improves performance, enabled by default
curl HTTP client functions
xml / dom XML parsing
soap SOAP web service client
pdo_mysql PDO MySQL driver — required for most PHP database apps
bcmath Arbitrary-precision math — required by some e-commerce apps

[!NOTE] Extensions shown in the list are those installed system-wide by the server admin. If you need an extension that is not listed, contact your admin. Admins can install additional extensions from Server Mode → PHP → Extensions.

Extensions Are Version-Specific

Each PHP version has its own set of installed extensions. If you switch a domain to a different PHP version, the extension list resets to that version's defaults. Re-enable any extensions you need after switching.

For Admins: Installing Extensions System-Wide

Go to Server Mode → PHP → Extensions. Select the PHP version and the extension to install. The agent runs the appropriate package install command:

# Debian/Ubuntu example
apt-get install php8.3-imagick

# RHEL/AlmaLinux example
dnf install php83-php-pecl-imagick

Once installed, the extension appears in all accounts' extension lists for that PHP version and can be enabled per-domain.