---
title: How to install a PHP extension in WHM
description: "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…"
url: "https://truehost.com/support/knowledge-base/how-to-install-a-php-extension-in-whm/"
updated: "2024-12-02"
category: Cloud servers in Kenya
---

# 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**

- 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](https://truehost.com/support/wp-content/uploads/2024/11/image-703.png)

- Navigate to "*Home » Software » EasyApache 4*"

![](https://truehost.com/support/wp-content/uploads/2024/12/image-67-1024x276.png)

- Click the "*Customize*" button under "*Currently Installed Packages*."

![](https://truehost.com/support/wp-content/uploads/2024/12/image-68.png)

- Click "*PHP Extensions*."

![](https://truehost.com/support/wp-content/uploads/2024/12/image-69.png)

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

![](https://truehost.com/support/wp-content/uploads/2024/12/image-70.png)

- 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.**

![](https://truehost.com/support/wp-content/uploads/2024/12/image-71.png)

- Click "*Review*" and review the output to ensure the PHP extension you marked for installation will be installed.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-72.png)

- Click the "*Provision*" button to install the selected PHP extensions.

![](https://truehost.com/support/wp-content/uploads/2024/12/image-73.png)

- Give it time to provision

![](https://truehost.com/support/wp-content/uploads/2024/12/image-74.png)

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

![](https://truehost.com/support/wp-content/uploads/2024/12/image-75.png)

- Click on **Done** to complete and close the window

![](https://truehost.com/support/wp-content/uploads/2024/12/image-76.png)

**That will be all! Cheers!**
