zabbix頁面php bcmath參數fail問題解決

來源:互聯網
上載者:User

標籤: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問題解決

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.