How to enable and disable PHP modules in cPanel
PHP is a modular system where you can install and enable new modules to provide extra functionalities. These modules or extensions can also be disabled to enhance PHP's performance and reduce your security vector.
A shared hosting system such as cPanel doesn't let you install third-party PHP extensions yourself, but it normally comes pre-installed with most standard extensions. You can enable or disable these PHP modules on cPanel from the dashboard.
Steps to enable or disable PHP extensions in cPanel:
Log in to your cPanel dashboard.
Click on Select PHP Version in the Software section.
Take note on the PHP version that you are configuring.
Modules are enabled and disabled only for the selected version. You'll need to enable or disable the PHP modules again if you switch to another PHP version later.
Scroll down to see the available modules.
Hover on the checkbox to see the module description (optional).
Click on the checkbox to enable and disable the selected module.
Modules are immediately enabled or disabled when the checkbox is ticked or unticked.