Enabling PHP Extensions with DirectAdmin Print

  • 0

DirectAdmin will have most commonly used PHP extensions already enabled by default. However, in some cases a domain may need additional extensions to work properly. DirectAdmin has made following PHP extensions available without requiring any installation:

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

To verify if a particular PHP extension is enabled, you can run the following command from your compute through SSH:

php -m

To enable any of the above listed extensions, you need to use custombuild script. For example, to enable the imagick extension run the following commands from your compute through SSH:

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

You can verify if the module is enabled by running: php -m


Was this answer helpful?

« Back

Ready to get started? Build your site from
$2.24/mo
GET STARTED NOW