Managing PHP Extensions
PHP extensions provide additional functionality to your PHP applications. Some applications require specific extensions to function properly — for example, WordPress needs the mysqli extension for database access and gd or imagick for image processing.
Common PHP Extensions
mysqli/pdo_mysql– MySQL database connectivity.gd– Image creation and manipulation.imagick– Advanced image processing with ImageMagick.curl– HTTP requests and API communication.mbstring– Multibyte string handling (essential for internationalisation).zip– Creating and extracting ZIP archives.xml/simplexml– XML parsing and manipulation.intl– Internationalisation functions.opcache– Bytecode caching for improved PHP performance.redis– Redis object caching (available on VPS plans).
How to Enable or Disable Extensions
- Log in to DirectAdmin.
- Navigate to Advanced Features > Select PHP Version.
- You will see a list of available PHP extensions with checkboxes.
- Tick the checkbox to enable an extension or untick it to disable.
- Click Save to apply the changes.
Checking Which Extensions Are Active
To see which PHP extensions are currently loaded:
- Create a file called
phpinfo.phpin yourpublic_htmldirectory with the content:<?php phpinfo(); ?> - Visit
https://yourdomain.com/phpinfo.phpin your browser. - Search the page for the extension name to check if it is loaded.
- Important: Delete the
phpinfo.phpfile after you are done, as it reveals sensitive server information.
Extension Not Available?
If you need an extension that is not available in the DirectAdmin interface, contact SillyHost support. On shared hosting, we can enable server-level extensions. On VPS plans, you have full control to compile and install custom extensions.