简体   繁体   English

在 Linux AMI EC2 实例上启用 mysqli 安装 phpMyAdmin 5.0.2

[英]Enable mysqli on Linux AMI EC2 Instance for phpMyAdmin 5.0.2 install

I am trying to enable the mysqli php extension on my Linux AMI EC2 Instance so I can access phpMyAdmin 5.0.2. I am trying to enable the mysqli php extension on my Linux AMI EC2 Instance so I can access phpMyAdmin 5.0.2. The current version of php that was installed is 7.2.当前安装的 php 版本是 7.2。 When I go to access try to access phpMyAdmin console, it says it is missing the mysqli extension.当我访问 go 尝试访问 phpMyAdmin 控制台时,它说它缺少 mysqli 扩展。 I ran the following command to check to see if it is enabled and it just comes out blank:我运行了以下命令来检查它是否已启用并且它只是空白:

php -m | grep mysqli

So, I successfully installed mysqli by running:因此,我通过运行成功安装了 mysqli:

sudo su yum install yum install php72-mysqli -y

I then successfully restarted the Apache server using the following command:然后我使用以下命令成功重启了 Apache 服务器:

sudo su service httpd restart

I then ran the php -m | grep mysqli然后我运行了php -m | grep mysqli php -m | grep mysqli to see if mysqli was enabled and the command does not produce anything showing it is enabled. php -m | grep mysqli查看 mysqli 是否已启用,并且该命令未生成任何显示已启用的信息。

Can anyone help me enable the mysqli php extension?谁能帮我启用 mysqli php 扩展?

I was able to enable mysqli by restarting the mysqld daemon by inputting:我能够通过输入以下内容重新启动 mysqld 守护程序来启用 mysqli:

sudo su service mysqld restart

The phpMyAdmin page came up properly. phpMyAdmin 页面正确出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM