简体   繁体   English

ec2亚马逊,无法读取/etc/httpd/conf.d/phpMyAdmin.conf:没有这样的文件或目录

[英]ec2 amazon, can't read /etc/httpd/conf.d/phpMyAdmin.conf: No such file or directory

I'm running ec2 Instance on amazon, I followed the exact command line as mentioned on official Amazon Doc when I tape sudo sed -i -e 's/127.0.0.1/your_ip_address/g' /etc/httpd/conf.d/phpMyAdmin.conf it gives me this error can't read /etc/httpd/conf.d/phpMyAdmin.conf: No such file or directory and I can't connect to phpmyadmin I put my own id address of course. 我在亚马逊上运行ec2实例,当我将sudo sed -i -e 's/127.0.0.1/your_ip_address/g' /etc/httpd/conf.d/phpMyAdmin.conf录制到sudo sed -i -e 's/127.0.0.1/your_ip_address/g' /etc/httpd/conf.d/phpMyAdmin.conf时,遵循了官方Amazon Doc所述的确切命令行sudo sed -i -e 's/127.0.0.1/your_ip_address/g' /etc/httpd/conf.d/phpMyAdmin.conf它给了我这个错误can't read /etc/httpd/conf.d/phpMyAdmin.conf: No such file or directory并且我无法连接到phpmyadmin我当然输入了自己的ID地址。 When I tape sudo yum list installed httpd24 php70 mysql56-server php70-mysqlnd I can see that mysql56-server.x86_64 is installed. 当我在sudo yum list installed httpd24 php70 mysql56-server php70-mysqlnd磁带上sudo yum list installed httpd24 php70 mysql56-server php70-mysqlnd我可以看到已安装mysql56-server.x86_64 It's the second instance that I have create and gives ma the same error. 这是我创建的第二个实例,并且给ma相同的错误。

Have you installed phpMyAdmin? 您安装了phpMyAdmin吗?

sudo yum-config-manager --enable epel
sudo yum install -y phpMyAdmin

Assuming you are using this guide - http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html 假设您正在使用本指南-http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html

What is the output of 什么是输出

sudo ls -lh /etc/httpd/conf.d/

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

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