How to Upgrade PHP Extensions in cPanel?


PHP extensions add functionality to PHP, enabling features like image processing (GD), database connections (MySQLi, PDO), encryption (OpenSSL), and more. Most extensions are enabled by default, but some may need to be activated manually.

How to Enable PHP Extensions

  1. Login to cPanel.
  2. Under Software, click MultiPHP INI Editor.
  3. Select your domain.
  4. Click the Editor Mode tab.
  5. Add the extension manually. For example:
    extension=imagick
    extension=redis
    extension=sodium
  6. Click Apply.

Common PHP Extensions and Their Uses

  • GD / Imagick: Image creation and manipulation.
  • MySQLi / PDO_MySQL: MySQL database connections.
  • cURL: HTTP requests and API calls.
  • OpenSSL: Encryption and HTTPS connections.
  • Mbstring: Multibyte string handling (required by many CMSs).
  • Zip: Create and extract ZIP archives.
  • Redis / Memcached: Object caching for performance.
  • Intl: Internationalization support.

Checking Loaded Extensions

Create a phpinfo.php file with <?php phpinfo(); ?> and visit it in your browser to see all currently loaded PHP extensions. Delete the file afterward.

Note: If an extension you need is not available, contact SKPHost Support. Some extensions may need to be installed at the server level.

If you continue to face issues, please open a create a request.

?האם התשובה שקיבלתם הייתה מועילה 0 משתמשים שמצאו מאמר זה מועיל (0 הצבעות)