麻烦在amazon linux AMI中安装phpmyadmin

时间:2017-06-15 04:41:12

标签: linux amazon-web-services

我正在使用amazon docs

安装LAMP环境

我尝试使用命令安装epel之后启用了phpmyadmin 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

解决方案是什么?

1 个答案:

答案 0 :(得分:-1)

您可以尝试以下方法来解决冲突。基本上我们会降级到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

希望有所帮助。