PHP databases support off Fail

Source: Internet
Author: User
Zabbix initialization Check installation environment does not pass:
PHP databases support off   Fail     --未找到所支持的数据库处理方法:安装Mysqli模块单独来编译mysqli,mysqli是优化过的mysql函数库,MYSQL版本不能低于4.1.12cd /usr/local/src/php-5.6.30/ext/mysqli/usr/local/php/bin/phpize     用phpize生成configure文件:Configuring for:PHP Api Version:         20131106Zend Module Api No:      20131226Zend Extension Api No:   220131226./configure --prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin/php-config --with-mysqli=/usr/local/mysql/bin/mysql_configmake make installInstalling shared extensions:     /usr/local/php/lib/php/extensions/debug-non-zts-20060613/然后在/usr/local/lib/php.ini加上一句:extension=/usr/local/php/lib/php/extensions/debug-non-zts-20060613/mysqli.so重新启动apache即可看到已经加载mysqli成功。===经测试,可以不用加路径:直接extension=mysqli.so即可。

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.