Home  >  Article  >  Backend Development  >  Solution to "Missing mysqli extension. Please check PHP configuration" under Linux

Solution to "Missing mysqli extension. Please check PHP configuration" under Linux

WBOY
WBOYOriginal
2016-07-25 08:56:212347browse
  1. tar -zxvf php-5.2.17.tar.gz
  2. cd php-5.2.17/ext/mysqli/
  3. /usr/bin/phpize #The configure configuration file will be generated in the current directory
  4. ./configure –with-php-config=/usr/bin/php-config –with-mysqli=/usr/bin/mysql_config
  5. make
  6. make install
Copy the code

If the above is correct, you can install it in /usr/ Find mysqli.so under lib64/php/modules/, and then add: extension=mysqli.so Then, restart the httpd service.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn