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
Checking enabled extensions
Section titled “Checking enabled extensions”To check which extensions are currently enabled, run via SSH:
php -mEnabling an extension
Section titled “Enabling an extension”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 -mPECL extensions
Section titled “PECL extensions”For installing PECL extensions not in the list above, see Installing and enabling PHP extensions in DirectAdmin.