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 mysqli, curl, or zip
- Laravel needing mbstring, openssl, 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:
- Log in to your cPanel

- Navigate to the Software section

- Click on Select PHP Version or PHP Selector
- Open the Extensions tab

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
- Log in to cPanel
- Go to Software >> Select PHP Version
- Choose the required PHP version from the dropdown
- Click on the Extensions tab
- Check the box to enable an extension
- Uncheck the box to disable an extension
- 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:
- Log in to cPanel
- Open MultiPHP Manager

- Select the domain
- Assign the desired PHP version
- Click Apply

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
