在 Amazon Linux AMI 中安装 phpmyadmin 时遇到问题



我正在使用亚马逊文档安装 LAMP 环境

之后,当我尝试使用命令安装phpmyadmin时,我启用了epel sudo yum install -y phpMyAdmin .它安装了一些东西可能phpmyadmin但最终它显示了一些错误,如下所示:

--> Finished Dependency Resolution
Error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php56-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
Error: php56-process conflicts with php-process-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

之后,当我运行此命令时

sudo sed -i -e 's/127.0.0.1/your_ip_address/g' /etc/httpd/conf.d/phpMyAdmin.conf

它显示

sed: can't read /etc/httpd/conf.d/phpmyadmin.conf: No such file or directory

解决方案是什么?

您可以尝试以下方法来解决冲突。基本上我们会降级到 php5。除非你的应用程序特别需要 php7,否则这应该没问题。对此,此用途。

sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd

然后

sudo yum install httpd24 php56 mysql56-server php56-mysqlnd

对于第二个错误,请确保已安装 Apache。

sudo yum install httpd

在此之后,您可能需要重新安装phpmyadmin,以便它可以使用虚拟主机文件phpmyadmin.conf

希望有帮助。

相关内容

最新更新