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