PHP extensions
How to check and enable extensions such as imagick, intl, mbstring or zip in Select PHP Version.
Extensions add functions to PHP that applications need, for example working with images, multibyte text or ZIP files. Messages such as "Call to undefined function" or "Could not find driver" often mean an extension is not enabled.
Enabling an extension#
- In cPanel open Software → Select PHP Version (in some plans MultiPHP Manager with an extensions tab).
- Check that the version you need is selected at the top: Changing the PHP version.
- Open the Extensions tab.
- Tick the checkbox next to the extension you need.
- The change is saved immediately; if there is a Save button, click it.
Commonly needed extensions#
- mbstring: working with text containing Croatian characters (č, ć, š, ž, đ).
- intl: internationalization, needed by some themes and applications.
- imagick or gd: image processing.
- zip: unpacking archives, often needed by plugins.
- curl, openssl: connecting to external services and APIs.
- pdo_mysql, mysqli: database connection: Connecting to a database from PHP.
- opcache: speeds up PHP execution.
Checking it is enabled#
Open info.php with <?php phpinfo(); in a browser (see PHP settings) and look for the extension name. Delete the file after checking.
Cet article vous a-t-il été utile ?
Merci pour votre retour ! Besoin d’aide ? Ouvrez un ticket.
Articles associés
Connecting to a database from PHPA PDO and mysqli connection example using localhost, and the most common connection errors.Changing the PHP versionHow to choose a PHP 8.x version for a domain in MultiPHP Manager and what to check afterwards.PHP settings (MultiPHP INI Editor)How to change memory_limit, upload_max_filesize, max_execution_time and other PHP directives.PHP errors and logsWhere to find error_log, how to enable error logging and how to read errors when troubleshooting.
