How to install a PHP extension in WHM

WHM provides a user-friendly way to manage PHP extensions for your server. You can easily add the required PHP extensions using theย EasyApache 4ย interface. Hereโ€™s a step-by-step guide: Prerequisites Step by Step On How to install a PHP extension in WHM That will be all! Cheers!

Last updated 30 Nov 2026Also in: Dedicated Servers, cPanel

WHM provides a user-friendly way to manage PHP extensions for your server. You can easily add the required PHP extensions using the EasyApache 4 interface. Hereโ€™s a step-by-step guide:

Prerequisites

  • Have root access to the serverโ€™s WHM.

Step by Step On How to install a PHP extension in WHM

  • Log in to WHM either with the root account. Normally you will use one of the URLs below;
http://your_server_ip:2087

https://your_server_hostname:2087

This image has an empty alt attribute; its file name is image-703.png

  • Navigate to โ€œHome ยป Software ยป EasyApache 4โ€œ

  • Click the โ€œCustomizeโ€ button under โ€œCurrently Installed Packages.โ€

  • Click โ€œPHP Extensions.โ€

  • Use the search bar to search for the extension you need to install. Example: sodium

  • Mark the extension for installation by clicking the switch icon to the far right of the extension.
    This needs to be done for each version of PHP for which you need the PHP Extension.

  • Click โ€œReviewโ€ and review the output to ensure the PHP extension you marked for installation will be installed.

  • Click the โ€œProvisionโ€ button to install the selected PHP extensions.

  • Give it time to provision

  • The selected extensions will install and a success message will be displayed

  • Click on Done to complete and close the window

That will be all! Cheers!

cloud servers in kenyaservers