Enable PHP Extensions with EasyApache on WHM cPanel

If you manage PHP website, it sometimes requires additional PHP extensions that aren’t enabled by default WHM installation so you have to to modify PHP configuration. For example, if you’re going to install Magento eCommerce, you need these additional PHP extensions: Mcrypt, Hash, GD, PDO, Mhash, and SOAP. If you’re going to install SobiPro on Joomla, you need these additional PHP extensions: XSL, Tidy HTML, SOAP, and ZipArchive. The below screenshot displays what PHP extensions are required to be enabled before you can use SobiPro 1.1.11 on Joomla 3.
SobiPro - Required PHP Extensions

If you have VPS or dedicated hosting, you usually have access to WHM cPanel which you can simply modify server and PHP configuration by yourself with EasyApache. However, if your website is on shared hosting, you are not likely to have access to WHM. In this case, you should contact your hosting support how to enable PHP extensions.

This article shows step-by-step guide how to enable PHP extensions with EasyApache on WHM cPanel. The PHP extensions that will be enabled in this example are XSL, Tidy HTML, SOAP, and ZipArchive.

Watch on YouTube

Step-by-step

  1. Login to WHM control panel. The URL usually be your web server IP address and port number, e.g. https://x.x.x.x:2087. This information can be obtained from your hosting support.
    WHM Control Panel
  2. Scroll down to Software section on the left menu and select EasyApache.
    WHM - EasyApache
  3. On EasyApache, click on the gear icon on default profile under Previously Saved Config section.
    EasyApache - Edit
  4. On Apache Version, click Next Step.
    EasyApache - Apache Version
  5. On PHP Version, you can also downgrade/upgrade your PHP version. In this example, I don’t need to change PHP version so click Next Step to continue.
    Note: Modify PHP version will affect all websites on the server. Therefore, you should check if PHP scripts support it. Otherwise, error will occur.
    EasyApache - PHP Version
  6. On Short Options List, scroll down to bottom of the page and click Exhaustive Options List.
    EasyApache - Short Options List
  7. On Exhaustive Options List, scroll down to PHP section and select which PHP extensions that you want. In this example, I select SOAP, Tidy, XSL, and Zip as these are required extensions.
    EasyApache - Exhaustive Options List - Select PHP Extensions
  8. Once you finished selecting extensions, scroll down to bottom of the page and select Save and Build.
    Note: If the server is on production and there are users using services, you should consider build (compile) in maintenance hours. You can select Save only (Do Not build) to postpone the build process at later time.
    EasyApache - Save and Build
  9. On Confirm Action, click OK to confirm recompile Apache and PHP now.
    EasyApache - Confirm Recompile
  10. On Acknowledge, click I Understand.
    EasyApache - Acknowledge Build Process
  11. EasyApache is now rebuilding (compile). This process may take a while.
    EasyApache - Building
  12. Once the build process is complete, you will see a new window to configure PHP and suEXEC. In this example, I modify only PHP extensions. I don’t need to configure PHP so I click Close to continue.
    EasyApache - Configure PHP and suEXEC
  13. Now check the requirement again. You will see the required extensions have been enabled.
    Joomla - Check Required Extensions

11 Comments

  1. Cristian August 7, 2015
  2. vincent August 28, 2015
  3. Praveen August 31, 2015
  4. linglom September 2, 2015
  5. allen November 21, 2015
  6. Maulik May 3, 2016
  7. Muhammad Saeed May 30, 2016
  8. Taim July 2, 2016
  9. John April 12, 2017
  10. Kalidass November 9, 2017
  11. Jhonny September 10, 2019

Leave a Reply