Installation after PHP information is missing in Zabbix

Source: Internet
Author: User
Tags gettext zts

Tag:sans   config   font   top    Restart      Pack    ttext   ble   phpize   

install PHP enable Bcmath and GetText (can be added when PHP is installed-- enable-bcmath-- enable-gettext)

1,bcmath Installation Method

Bcmath This extension is available in the PHP source installation package, which needs to be recompiled before it can be supported;

CD Php-5.2.7/ext/bcmath (source package)
/usr/local/ Php/bin/phpize (compiled)
./configure--with-php-config=/usr/local/php/bin/php-config 
Make && make Install (make can get so path/usr/local/php/lib/php/extensions/no-debug-zts-20100525/)
Copy the file under so path to the   extension path /usr/local/php/lib/php/extensions
Vim php.ini  (/usr/loacal/php/etc/php.ini)
Extension=bcmath.so (Echo "Extension=bcmath.so" >>/usr/local/php/etc/php.ini)
Restart Apache
2.gettext Installation method

This installation is a dynamic installationPHPof theGetTextExpansion Modulesin thePHPin the source file, enterExt/gettext
CD Ext/gettext
/usr/local/php/bin/phpize
./configur–with-php-config=/usr/local/php/bin/php-config
Make && make install( makecan get so path/usr/local/php/lib/php/extensions/no-debug-zts-20100525/)

Copy the so path file to the extension path/usr/local/php/lib/php/extensions
Vim PHP.ini (/usr/loacal/php/etc/php.ini)
Extension=gettxt.so (echo "extension=gettext.so" >>/usr/local/php/etc/php.ini)

Apachectl stop
Apachectl start

Restart Apache


Installation after PHP information is missing in Zabbix

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.