✅ Installing PHP Versions and Enabling Required Extensions via WHM EasyApache 4
In WHM/cPanel servers, installing PHP versions and enabling PHP extensions is made simple thanks to the EasyApache 4 tool.This guide explains step-by-step how to install a PHP version and enable the necessary components directly from the WHM panel.
🔐 Log in to WHM Panel
To access your WHM panel, open your browser and use one of the following formats:https://your-server-ip:2087https://server.yourdomain.com:2087
⚠️ You’ll need your root user credentials to log in successfully.
🔍 Access EasyApache 4
- Once logged into WHM, use the search bar in the top-left corner and type EasyApache 4.
- Click on the EasyApache 4 option that appears in the list.
⚙️ Select and Customize the PHP Version
➤ PHP Versions: From this interface, you can install or customize your desired PHP version (e.g., PHP 8.1, PHP 8.2, etc.).- You’ll see the list of PHP versions already installed on your server.
- To add a new PHP version or modify an existing one, click the Customize button on the right side.
🧩 Add PHP Extensions (Modules)
➤ PHP Extensions: In this section, you’ll find all available modules related to your selected PHP version.Some commonly used extensions include:
- mbstring
- pdo_mysql
- zip
- intl
- opcache
⚠️ Enable the extensions that are compatible with your CMS or framework (e.g., WordPress, Joomla, Laravel, etc.).
🛠️ Review and Apply Changes
- After selecting the PHP version and desired modules, go to the Review section.
- Double-check all your selections.
- Click the Provision button to start the installation process.