无法安装 mysqli 扩展,使用 php 7.2

Unable to install mysqli extension, Using php 7.2

提问人:Jay Cho 提问时间:2/17/2018 更新时间:5/24/2019 访问量:7523

问:

我现在使用的是 linux mint、apache2、mySQL 5.7、php 7.2。

我试图在我的本地服务器上执行基本的php登录网页,这是 http://192.168.xxx.xxx/ 但是当我登录我的页面时,总是出现白色页面。

我尝试安装php mysqli扩展,所以我在终端上编写了如下命令:

taylor@C10ud-9 ~ $ sudo apt-get install php-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php-mysql is already the newest version (1:7.0+35ubuntu6.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor@C10ud-9 ~ $ sudo apt-get install php-mysqlnd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php7.0-mysql' instead of 'php-mysqlnd'
php7.0-mysql is already the newest version (7.0.25-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor@C10ud-9 ~ $ sudo apt-get install php7.0-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php7.0-mysql is already the newest version (7.0.25-0ubuntu0.16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
taylor@C10ud-9 ~ $ phpenmod mysqli
WARNING: Module mysqli ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mysqli ini file doesn't exist under /etc/php/7.2/mods-available

但是找不到 mysqli。

PHP MySQLI

评论

0赞 apokryfos 2/17/2018
尝试安装php7.2-mysql
2赞 Jay Cho 2/17/2018
我有 3 条错误消息 E:无法找到 php7.2-mysql 包 E:无法通过 glob 'php7.2-mysql' 找到任何包 E:无法通过正则表达式“php7.2-mysql”找到任何包
1赞 apokryfos 2/17/2018
你最初是如何安装 PHP 7.2 的?
0赞 Jay Cho 2/17/2018
我记得我刚刚安装了 apache2 和 mysql !php 是如何启动的?

答: 暂无答案