Updated: 15 November 2026 · Applies to: DirectAdmin with CloudLinux PHP Selector (alt-php versions)
To turn PHP extensions on or off in DirectAdmin, open Select PHP Version (the CloudLinux PHP Selector, usually under Extra Features), make sure a version other than native is selected, then tick the extensions you need and untick the ones you do not. According to CloudLinux, changes are saved automatically, so there is no Save button to look for.
PHP extensions add features to PHP, such as image handling (gd, imagick), international text (intl, mbstring), encryption or database drivers (mysqli, pdo_mysql). Most website software lists the extensions it needs in its requirements.
Steps
- Log in to DirectAdmin (usually
https://your-server:2222; the address is in your welcome email). - Open Select PHP Version. In the Evolution skin it is usually under Extra Features; you can also type "Select PHP" in the menu search box.
- Check the Current PHP version. If it says native, choose a numbered version first (see below).
- On the extensions page, tick each extension your site needs and untick the ones it does not.
- Reload your website and check that it works.
Why the extension list is empty or greyed out
- The version is set to native. The native version is the server's own PHP, which is managed by the server administrator. According to CloudLinux, the selector's extension list applies to the alternative (alt-php) versions, so pick a numbered version such as 8.2 or 8.3 that your site supports. To change the version, see How to Change PHP Version Using CloudLinux Selector in DirectAdmin.
- The extension is built in. Some extensions are compiled into PHP or enabled for everyone in the version's global settings. According to CloudLinux, these cannot be disabled per account, so their box cannot be unticked.
- The domain does not use the CloudLinux selector. According to CloudLinux, a domain has to be set to use PHP Selector (on the My Domains tab, where present). If the domain runs on a PHP version chosen in DirectAdmin's own PHP settings, the extensions you tick here do not apply to it. See How to use DirectAdmin PHP Version Selector?
Reset to default and PHP options
- Reset to default puts the extension list back to the server's default set for that PHP version. Use it if a change broke your site and you are not sure which box caused it.
- Switch to PHP options opens the settings page for values such as
memory_limit,upload_max_filesizeandmax_execution_time. See How to Adjust PHP Memory Limits in DirectAdmin Using CloudLinux Selector and How to Increase PHP upload_max_filesize in DirectAdmin.
Check that an extension is loaded
The quickest check is a small PHP file. Create info.php in the site's public_html folder with this content:
<?php phpinfo();
Open https://www.example.com/info.php and search the page for the extension's name. Delete the file straight after: it shows details of your server setup that should not stay public.
If you have SSH access, this prints bool(true) when an extension is loaded and bool(false) when it is not:
php -r 'var_dump(extension_loaded("intl"));'
Output on a PHP 8.3.36 test container without intl (lab example):
bool(false)
The command line can use a different PHP version than your website, so if the two disagree, trust the phpinfo() page.
Common extensions people look for
- ionCube Loader for encoded scripts: see How to Enable ionCube Loader in DirectAdmin via CloudLinux Selector.
- GD for image resizing and thumbnails: see How to Enable GD Extension for PHP in DirectAdmin.
- mysqli and pdo_mysql for WordPress and most PHP applications that use MySQL or MariaDB.
Only enable what your site needs. Each extra extension that PHP loads can add to the memory every PHP request uses.
Official documentation: CloudLinux, PHP Selector client plugin and PHP extension list.