Zabbix PHP databases support off Fail

Source: Internet
Author: User
Tags zts zend

Zabbix initialization Check installation environment does not pass:

PHP databases support off fail-the supported database was not found

Treatment method: Install the Mysqli module

################
Installation of the Mysqli module
################

Remember that in compiling PHP has already been added parameters
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
Can later find a, does not exist mysqli.so, so can only be compiled mysqli alone.
Mysqli is a library of optimized MySQL libraries, MySQL version can not be less than 4.1.12
Cd/root/lamp/php-5.2.3/ext/mysqli
# # # #进入到mysqli的目录.
Then use Phpize to generate the Configure file:
/usr/local/php/bin/phpize
Configuring for:
PHP Api version:20041225
Zend Module Api no:20060613
Zend Extension Api no:220060519
#./configure--prefix=/usr/local/mysqli \
--with-php-config=/usr/local/php/bin/php-config \--depending on the actual path of the environment: Find/-name php-config
--with-mysqli=/usr/local/mysql/bin/mysql_config---According to the actual path of the environment: Find/-name mysql_config
Make
Make Test
Make install
Installing Shared extensions:/usr/local/php/lib/php/extensions/debug-non-zts-20060613/
And then in/usr/local/lib/php.ini
Add one sentence:
Extension=/usr/local/php/lib/php/extensions/debug-non-zts-20060613/mysqli.so
Restart Apache to see that the MYSQLI has been loaded successfully.

= = = tested, can not add path:

Direct extension=mysqli.so can be.

Reference: http://linux.chinaunix.net/techdoc/database/2008/01/16/976742.shtml

Zabbix PHP databases support off Fail

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.