Skip to content

Enabling PHP extensions with DirectAdmin

DirectAdmin includes most commonly used PHP extensions enabled by default. The following extensions are available without additional installation and can be enabled via the custombuild script:

  • bz2, gmp, htscanner, igbinary, imagick, imap, ioncube
  • ldap, opcache, phalcon, redis, readline
  • suhosin, snuffleupagus, xmlrpc, zend

To check which extensions are currently enabled, run via SSH:

php -m

To enable an extension (e.g., imagick), run the following commands:

cd /usr/local/directadmin/custombuild
./build update
./build set_php "imagick" yes
./build "php_imagick"

Verify the module is enabled:

php -m

For installing PECL extensions not in the list above, see Installing and enabling PHP extensions in DirectAdmin.