Wdlinux (Centos5.8) installation Bcmath

Source: Internet
Author: User

Environmental centos5.8 php5.2.17

Because the Wdos integrated php5.2.17 is a lite version, the Php52-bcmath extension is not included.

So download the full php5.2.17 source package first

Wget-c Http://us3.php.net/get/php-5.2.17.tar.gz/from/this/mirror
=====================================================
My extension dir:
/www/wdlinux/php/lib/php/extensions/no-debug-zts-20060613


Go to the Bcmath under full php5.2.17:
Cd/home/vmax/lanmp/v-php5217/php-5.2.17/ext/bcmath

828/www/wdlinux/php/bin/phpize
829./configure--with-php-config=/www/wdlinux/php/bin/php-config
833 make
834 make Install
Echo ' extension=bcmath.so ' >>/www/wdlinux/apache_php-5.3.17/etc/php.ini

It is best to check that the ' extension=bcmath.so ' in the php.ini is inserted correctly, and sometimes the insert does not wrap, which leads to the load failure.

Also ensure that the file bcmath.so is present in the ' Extension_dir ' directory.

Restart Web Service

Service httpd Restart

Wdlinux (Centos5.8) installation Bcmath

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.