麻烦在amazon linux AMI中安装phpmyadmin

时间:2020-11-27 12:57:23

I am installing a LAMP enviornment using amazon docs

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

I enabled epel after that when i try to install phpmyadmin using command sudo yum install -y phpMyAdmin. It installs something maybe phpmyadmin but in the end it shows some errors like this:

当我尝试使用命令sudo yum install -y phpMyAdmin安装phpmyadmin时,我启用了epel。它安装的东西可能是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

After that when I run this command

之后,当我运行此命令

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

it shows

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

what is the solution?

解决办法是什么?

1 个解决方案

#1


-1  

You can try the following to resolve the conflict. Basically we will downgrade to php5. Unless your application specifically needs php7, this should be fine. To this this use.

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

sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd

Then

sudo yum install httpd24 php56 mysql56-server php56-mysqlnd

For the second error make sure Apache is installed.

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

sudo yum install httpd

You might have to reinstall phpmyadmin after this so it can the virtual host file phpmyadmin.conf

您可能必须在此之后重新安装phpmyadmin,因此它可以是虚拟主机文件phpmyadmin.conf

Hope that helps.

希望有所帮助。

#1


-1  

You can try the following to resolve the conflict. Basically we will downgrade to php5. Unless your application specifically needs php7, this should be fine. To this this use.

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

sudo yum remove httpd24 php70 mysql56-server php70-mysqlnd

Then

sudo yum install httpd24 php56 mysql56-server php56-mysqlnd

For the second error make sure Apache is installed.

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

sudo yum install httpd

You might have to reinstall phpmyadmin after this so it can the virtual host file phpmyadmin.conf

您可能必须在此之后重新安装phpmyadmin,因此它可以是虚拟主机文件phpmyadmin.conf

Hope that helps.

希望有所帮助。