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