简体   繁体   English

在Amazon Linux上安装phpMyAdmin

[英]Installing phpMyAdmin on Amazon Linux

After installing phpMyAdmin on Amazon Linux using these commands...: 在Amazon Linux上使用这些命令安装phpMyAdmin后......:

sudo yum --enablerepo=epel install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

... I have tried the steps described in this tutorial (referred to in previous StackOverflow Answers), but do get the following error message after issuing the command ...我已经尝试了本教程中描述的步骤(在之前的StackOverflow Answers中引用),但在发出命令后确实收到以下错误消息

sudo chmod 0700 /etc/httpd/conf.d/phpmyadmin.conf : File or Directory not found . sudo chmod 0700 /etc/httpd/conf.d/phpmyadmin.confFile or Directory not found

How can I get phpMyAdmin running on Amazon Linux? 如何在Amazon Linux上运行phpMyAdmin?

You can install phpmyadmin rpm package by yum command to enabling epel repositories 您可以通过yum命令安装phpmyadmin rpm package来启用epel存储库

yum --enablerepo=epel install phpmyadmin

You'll then have to change the phpMyAdmin config file to allow access from your IP. 然后,您必须更改phpMyAdmin配置文件以允许从您的IP进行访问。

Oh and you probably need to change your sudo command to be case sensitive. 哦,您可能需要将sudo命令更改为区分大小写。 Double check your filename, but on my system it would be 仔细检查你的文件名,但在我的系统上它会

sudo chmod 0700 /etc/httpd/conf.d/phpMyAdmin.conf

When I first tried to install phpMyAdmin on Amazon Linux, I got some trouble; 当我第一次尝试在Amazon Linux上安装phpMyAdmin时,我遇到了一些麻烦; even though, I had already using epel-release options. 尽管如此,我已经使用了epel-release选项。

What I did was: 我做的是:

sudo yum install epel-release
sudo yum install phpmyadmin

I got error 我收到了错误

No package phpmyadmin available. 没有包phpmyadmin可用。

If you got the same error you could try 如果您遇到同样的错误,可以试试

sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

then 然后

sudo yum --enablerepo=remi install phpmyadmin

should works. 应该有用。

As previous post said, you might need update the conf of phpmyadmin on Apache for public access. 正如之前的帖子所说,您可能需要在Apache上更新phpmyadmin的conf以进行公共访问。 After

sudo chmod 0700 /etc/httpd/conf.d/phpMyAdmin.conf

You should update the config 你应该更新配置

<IfModule !mod_authz_core.c>
 # Apache 2.2
 Order Deny,Allow
 Allow from All
 #Deny from All
 #Allow from 127.0.0.1
 #Allow from ::1
</IfModule>

then you should be able to access phpMyAdmin by http://domainname.com/phpMyAdmin now. 那么你应该能够通过http://domainname.com/phpMyAdmin访问phpMyAdmin了。

Reference: 参考:

There's a great tutorial in the Amazon EC2 documentation that covers installing a LAMP web server stack on Amazon Linux. Amazon EC2文档中有一个很棒的教程 ,包括在Amazon Linux上安装LAMP Web服务器堆栈。 One of the optional procedures in that topic includes installing phpMyAdmin . 该主题中的一个可选过程包括安装phpMyAdmin

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

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