Home > Backend Development > PHP Problem > What should I do if php does not support mysqli?

What should I do if php does not support mysqli?

藏色散人
Release: 2023-03-08 11:42:01
Original
2895 people have browsed it

The solution to the problem that php does not support mysqli: first enter the php source code package and find the pcntl extension directory; then use phpize to generate the configuration file; then load the mysqli.so extension in the php.ini configuration file; finally restart php- fpm is enough.

What should I do if php does not support mysqli?

#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.

php does not support mysqli, is there any way to generate mysqli.so?

1. Enter the php source code package and find the pcntl extension directory

[root@php ~]# cd ./php-5.6.7/ext/mysqli/
Copy after login

2. Use phpize to generate the configuration file

[root@php pcntl]# phpize
[root@php pcntl]# ./configure
Copy after login

3. Make && make install installation

[root@php no-debug-non-zts-20131226]# ls
bcmath.so gd.so opcache.a mysqli.so
calendar.so mcrypt.so opcache.so pdo_mysql.so
curl.so memcache.so openssl.so posix.so
Copy after login

4. php.ini configuration loads the mysqli.so extension

extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/mysqli.so

What should I do if php does not support mysqli?

5. Restart php-fpm and check phpinfo in the browser.

[Recommended learning: "PHP Video Tutorial"]

The above is the detailed content of What should I do if php does not support mysqli?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template