When we have to handle large numbers or to perform mathematical calculations with high precision, we use PHP BCMath extension to overcome floating point errors as well. In this article, I will help you to enable PHP BCMath extension in cPanel. So, let’s start.
I am considering, you have full access to cPanel server configuration, some of the shared web hosting doesn’t allow us to modify PHP extensions via cPanel, if you are one of them, then you have to contact your web hosting support.
Access cPanel Dashboard to Enable PHP BCMath Extension in cPanel
Login to cPanel account and navigate to PHP PEAR Packages under software section of the cPanel dashboard. Click on the PHP PEAR Packages to find the PHP BCMath extension on the list
Search PHP BCMath on the Search Box
Search for “PHP BCMath” on the search box. If you are not able to find it here, you need to enable the extension through Web Host Manager PHP Extensions installation or alternatively, you can contact web hosting support for the installation (for shared hosting).
Enable PHP BCMath Extension.
after locating the extension package, install or enable package and saved the configuration. If you have “root” access, it is recommended to restart your server.
In this short tutorial, you have learned how to enable PHP BCMath extension in cpanel. If you found this article helpful. Please comment below, also you may ask your doubts too.