標籤:phpbcmath extension missing bcmath php bcmath
650) this.width=650;" src="https://s1.51cto.com/wyfs02/M00/92/56/wKioL1j-s-vx568lAAI2CY7PG9s881.png-wh_500x0-wm_3-wmp_4-s_2717131835.png" title="111.png" alt="wKioL1j-s-vx568lAAI2CY7PG9s881.png-wh_50" />
開啟zabbix頁面,修改了php.ini的設定檔。發現 php bcmath參數修改後沒起效果。
提示: #PHPbcmath extension missing (PHP configuration parameter --enable-bcmath)
解決步驟
1安裝php bcmath
yum install *bcmath* --skip-broken
2安裝完成後重啟php發現並沒有起作用,查閱資料發現bcmath 安裝完成後需要重新編譯
進入php解壓的包裡/usr/local/php解壓出的目錄/ext/bcmath
我的路徑/usr/local/php5620/ext/bcmath
執行如下命令/usr/local/php-5.6.20/bin/phize
./configure --with-php-config=/usr/local/php/bin/php-config
然後執行
make
make install
執行完之後會產生一個路徑
/usr/local/php-5.6.20/lib/php/extensions/no-debug-non-zts-20131226/(這個路徑每個人不一樣)進入後發現該目錄下有個 bcmath.so檔案
然後在php.ini中找到配置extension_dir配置的路徑 把bcmath.so拷貝到該路徑下。然後重啟php
650) this.width=650;" src="https://s5.51cto.com/wyfs02/M01/92/57/wKioL1j-ubTyCLh8AACawb1GKKQ154.png-wh_500x0-wm_3-wmp_4-s_1298476361.png" title="222.png" alt="wKioL1j-ubTyCLh8AACawb1GKKQ154.png-wh_50" />
zabbix頁面php bcmath參數fail問題解決