Hướng dẫn bcmath php extension cpanel
Skip to content
Install BCmath Extension in PHPPHP offers various extensions to deal with different cases. BCMath is one of PHP extension which helps us while working with float values in PHP. In BCMath, BC Stands for Binary Calculator. In this article, we will see how to Install BCMath Extension in PHP on various platforms.
Install BCMath Extension in PHP – WindowsThe installation of PHP extension in PHP is very simple. Open your active php.ini and look for the line extension=php_bcmath.dll. If that line is commented with ; at the start then you just need to remove that ; and restart apache will load this BCMath extension with PHP. Install BCMath Extension in PHP – UbuntuTo install PHP extension in Ubuntu you will need either root or sudo user access. We will see how BCMath extension can be installed on various versions of PHP. PHP 5.6
PHP 7.0
Other PHP Version
If you are not sure which version of PHP you are using then you can type php -v in your terminal and you will get a version of PHP installed. If all the above method did not work for you then you can search for all available module which is related to PHP. Type apt-cache search php in your terminal and it will list all PHP modules and extension which are compatible with your PHP version. Once an extension is installed using any of the above methods then you need to restart the apache server in order to load BCMath extension in PHP. Install BCMath Extension in PHP – CentOSSame as Ubuntu you will need root or sudo user access to install an extension in PHP. PHP 5.6
PHP 7
If above did not work for you then you can search for an available package for your PHP version using sudo yum search bcmath and it will show available bcmath package for your PHP installation. After the extension is installed you need to restart apache using sudo service httpd restart and you are done with the installation of PHP BCMath extension. In the next article, we will see what is the use of this PHP BCMath Extension while working with float values in PHP. Experienced full stack freelance web developer with a track record of producing excellent results for 11+ years. Excellent communication and collaboration skills, managing with a team of 20+ people. I’m motivated to make a positive impact on your revenue through the customer web portal development project. Recent Posts
Related PostsFREE QUOTEDo you need help with services? Request a free quote to get in touch. Trying to install a CMS and I keep getting an error and I read somewhere that I need to enable the tokenizer extension. How do I do this? Nội dung chính
Hi lappy, the tokenizer should be built-in by default starting from PHP 4.3.0. What is your output of the following command from console or ssh? Last edited: Dec 19, 2009
tokenizer extension is installed by default. You can check by executing the command: BTW, what error message you receive while installing the CMS?
Thanks for your replies. I believe this happened when I was installing Joomla. I will try again and report back with the exact error message.
Last modified: August 24, 2022 OverviewThis document lists the PHP options available in EasyApache 4. Select the PHP extensions that you wish to use in WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) or use your package manager. For more information about how to install a PHP package, read our How to Locate and Install a PHP Version or Extension documentation. EasyApache adheres to the php.net supported versions timeline. The profiles that we supply in WHM’s EasyApache 4 interface (WHM >> Home >> Software >> EasyApache 4) only provide PHP versions that php.net currently supports.
Note: To determine which package installs a specific extension, use the
Current PHP versionsCurrent versions of PHP include PHP versions 7.4, 8.0, and 8.1. Unless otherwise noted, the following options support all current versions of PHP. Opcode cachersAn opcode cacher improves the efficiency of your PHP applications but also uses more memory. EasyApache 4 currently only supports the OPCache opcode cacher. Warning:
PHP loaders or encodersA PHP loader allows PHP to execute encoded applications. This ensures that others cannot access your code. You can use one of the following options to install a PHP loader on your web server:
PHP extensionsPHP provides many built-in extensions. You can use these extensions to add functionality to your PHP applications or your web server.
Legacy PHP versionsLegacy versions of PHP include PHP versions 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, and 7.3. Unless otherwise noted, the following options support all legacy versions of PHP. Click to view... Opcode cachersAn opcode cacher improves the efficiency of your PHP applications but also uses more memory. EasyApache 4 currently only supports the OPCache opcode cacher. Warning:
PHP loaders or encodersA PHP loader allows PHP to execute encoded applications. This ensures that others cannot access your code. You can use one of the following options to install a PHP loader on your web server:
Note:
PHP extensionsPHP provides many built-in extensions. You can use these extensions to add functionality to your PHP applications or your web server.
Note: You must install the
Additional Documentation
cPanel, WebHost Manager and WHM are registered trademarks of cPanel, L.L.C. for providing its computer software that facilitates the management and configuration of internet web servers. |