Enabling PHP extensions
PHP extensions add features your application may require - for example imagick for image processing, curl for API calls, mbstring for multibyte text, or zip for archives. Many applications will warn you if a required extension is missing.
To enable extensions in the DirhamHost panel:
- Open Select PHP Version.
- Make sure your desired PHP version is selected first.
- On the Extensions tab, tick the extensions you need.
- Save. Changes take effect right away.
Commonly needed extensions:
- WordPress / WooCommerce:
curl,gdorimagick,mbstring,xml,zip,intl. - Laravel:
bcmath,ctype,json,mbstring,openssl,pdo,tokenizer,xml.
Note that extension choices are tied to the PHP version, so if you switch versions you may need to re-check them. If an extension you need is not listed, contact support - some modules are enabled server-wide on request. To confirm what is active, create a file with <?php phpinfo(); and open it in your browser (delete it afterwards). Need a specific extension? Ask us at support@dirhamaday.ae.
Still need a hand? Our UAE-based team is here 24/7.