How to Enable or Disable PHP Extensions in cPanel

February 10, 2026 / cPanel

How to Enable or Disable PHP Extensions in cPanel

To Enable or Disable PHP Extensions in cPanel is a very common task when you are running WordPress, Laravel, or any PHP-based application. Some plugins and frameworks require specific PHP extensions to function properly, while others may conflict with unused modules. 

In this guide, we will show you how to enable or disable PHP extensions in cPanel using simple, beginner-friendly steps.

Quick Answer:

To enable or disable PHP extensions in cPanel, log in to cPanel, open Select PHP Version, choose your PHP version, go to the Extensions tab, and check or uncheck the required modules. The changes apply instantly and do not require a server to restart. 

What Are PHP Extensions and Why Do They Matter? 

PHP extensions are libraries that add extra functionality to PHP. Without the required extensions, your website may show errors, fail to load features, or break completely. 

Common use cases: 

  • WordPress plugins requiring mysqlicurl, or zip 
  • Laravel needing mbstringopenssl, or pdo 
  • Payment gateways using soap or json 

Keeping only required PHP extensions enabled helps improve performance, security, and stability. 

How to Check Enabled PHP Extensions in cPanel 

Before making changes, it is always good to verify which extensions are already active. 

Steps: 

  1. Log in to your cPanelcPanel Login dashboard
  2. Navigate to the Software sectioncpanel Software Option
  3. Click on Select PHP Version or PHP Selector
  4. Open the Extensions tabEnable PHP Extension in cPanel

You will see a list of PHP extensions with checkboxes indicating their status. 

1: Enable or Disable PHP Extensions Using PHP Selector 

This is the most commonly used method on Cloud Linux servers. 

Step-by-Step Instructions 

  1. Log in to cPanel
  2. Go to Software >> Select PHP Version
  3. Choose the required PHP version from the dropdown
  4. Click on the Extensions tab
  5. Check the box to enable an extension 
  6. Uncheck the box to disable an extension 
  7. Changes are saved automatically 

Tip: No server restart is required. Changes take effect instantly. 

2: Enable or Disable PHP Extensions Using MultiPHP Manager 

This method allows you to manage PHP versions per domain. 

Steps: 

  1. Log in to cPanel
  2. Open MultiPHP ManagercPanel PHP Multi Manager
  3. Select the domain
  4. Assign the desired PHP version
  5. Click ApplyDisable PHP Extenstion in cPanel

To manage extensions after this, return to Select PHP Version and update extensions accordingly. 

You can refer to the following guide: How to check the PHP version & configuration in cPanel 

Common PHP Extensions and Their Uses

PHP Extension  Purpose 
mysqli  Database connectivity 
curl  API and external requests 
mbstring  Multibyte string handling 
zip  File compression 
json  Data exchange 
openssl  Secure encryption 

Best Practices for Managing PHP Extensions 

  • Enable only extensions your application needs 
  • Avoid enabling unused modules 
  • Always test changes on staging sites first 
  • Keep PHP version updated for security 

Conclusion 

Managing PHP extensions in cPanel is a simple yet powerful way to optimize your website’s performance and compatibility. Whether you are enabling a required module or disabling unused ones, cPanel gives you full control without touching the command line. 

If you are unsure which PHP extensions your website needs, the bodHOST support team is always here to help.

If this helped, Read More about our other knowledgebase: How to resolve Image Upload issues in WordPress