ubuntu 16.04上的php 7.2上缺少请求的PHP扩展名ext-mysqli *

when I

composer create-project phpmyadmin/phpmyadmin

I got the problems:

- The requested PHP extension ext-mysqli * is missing from your system. Install or enable PHP's mysqli extension.

I had edit my php.ini and restart the php and nginx but still show the error?

sudo systemctl restart php7.2-fpm
sudo systemctl restart nginx

sudo nano /etc/php/7.2/fpm/php.ini

cgi.fix_pathinfo=0
;extension=bz2
extension=curl
;extension=fileinfo
extension=gd2
;extension=gettext
;extension=gmp
extension=intl
extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
;extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=gettext
;extension=gmp
extension=intl
extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
;extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp

;extension=soap
;extension=sockets
;extension=sqlite3
;extension=tidy
extension=xmlrpc
;extension=xsl

Do I need to install another mysqli? It's so strange. I had install the sudo apt-get install php7.2-fpm php7.2-mysql php7.2-cgi php7.2-common php-pear php7.2-mbstring
before and work well. But I don't know why it has the problem when I reinstall the ubuntu and mariaDB and php 7.2 and phpmyadmin.

查看全部
dongzhan0624
dongzhan0624
2019/04/23 03:35
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复