<i id='FXKtC'><tr id='FXKtC'><dt id='FXKtC'><q id='FXKtC'><span id='FXKtC'><b id='FXKtC'><form id='FXKtC'><ins id='FXKtC'></ins><ul id='FXKtC'></ul><sub id='FXKtC'></sub></form><legend id='FXKtC'></legend><bdo id='FXKtC'><pre id='FXKtC'><center id='FXKtC'></center></pre></bdo></b><th id='FXKtC'></th></span></q></dt></tr></i><div id='FXKtC'><tfoot id='FXKtC'></tfoot><dl id='FXKtC'><fieldset id='FXKtC'></fieldset></dl></div>
    1. <tfoot id='FXKtC'></tfoot>

    2. <small id='FXKtC'></small><noframes id='FXKtC'>

        <bdo id='FXKtC'></bdo><ul id='FXKtC'></ul>

      1. <legend id='FXKtC'><style id='FXKtC'><dir id='FXKtC'><q id='FXKtC'></q></dir></style></legend>

        将 phpMyAdmin 安装到 Amazon EC2 实例上

        Installing phpMyAdmin onto Amazon EC2 instance(将 phpMyAdmin 安装到 Amazon EC2 实例上)

            <bdo id='a15vR'></bdo><ul id='a15vR'></ul>

          • <tfoot id='a15vR'></tfoot>

              <small id='a15vR'></small><noframes id='a15vR'>

                <tbody id='a15vR'></tbody>
              <legend id='a15vR'><style id='a15vR'><dir id='a15vR'><q id='a15vR'></q></dir></style></legend>
                  <i id='a15vR'><tr id='a15vR'><dt id='a15vR'><q id='a15vR'><span id='a15vR'><b id='a15vR'><form id='a15vR'><ins id='a15vR'></ins><ul id='a15vR'></ul><sub id='a15vR'></sub></form><legend id='a15vR'></legend><bdo id='a15vR'><pre id='a15vR'><center id='a15vR'></center></pre></bdo></b><th id='a15vR'></th></span></q></dt></tr></i><div id='a15vR'><tfoot id='a15vR'></tfoot><dl id='a15vR'><fieldset id='a15vR'></fieldset></dl></div>
                  本文介绍了将 phpMyAdmin 安装到 Amazon EC2 实例上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已按照 亚马逊教程.这似乎运行正常(我可以在上传好的文件中看到 phpinfo()).

                  I've configured my EC2 instance as a LAMP, following Amazon's tutorial. That appears to be functioning correctly (I can see phpinfo() in a file I've uploaded OK).

                  然后我尝试通过执行以下操作来安装 phpMyAdmin:

                  I then tried to install phpMyAdmin by doing the following:

                  sudo yum --enablerepo=epel install phpmyadmin
                  

                  我可以看到phpMyAdmin现在在/usr/share/phpmyadmin,所以我添加了一个符号链接:

                  I can see that phpMyAdmin is now in /usr/share/phpmyadmin, so I added an symbolic link:

                  sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
                  

                  然后我编辑了 http.confAllowOverride all 添加到 .(命令:sudo nano/etc/httpd/conf/httpd.conf)

                  I then edited http.conf to add AllowOverride all to <Directory "/var/www/html">. (Command: sudo nano /etc/httpd/conf/httpd.conf)

                  然后重启服务器:

                  sudo service httpd restart

                  但是每当我访问 http://ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com/phpmyadmin 我都会收到来自服务器的 403 Forbidden 响应: 您无权访问此服务器上的/phpmyadmin.

                  But whenever I visit http://ec2-xx-xxx-xxx-xxx.us-west-2.compute.amazonaws.com/phpmyadmin I get a 403 Forbidden response from the server: You don't have permission to access /phpmyadmin on this server.

                  我觉得我遗漏了一些非常明显的东西,但我不知道是什么.

                  I feel like I'm missing something really obvious, but I cannot figure out what.

                  推荐答案

                  我需要更新 /etc/httpd/conf.d/phpMyAdmin.conf 以允许远程用户.

                  I needed to update the /etc/httpd/conf.d/phpMyAdmin.conf to allow remote users.

                  我只是像这样替换了第一个 标签的内容...

                  I just replaced the contents of the first <directory> tag like so...

                  我删除了:

                  <Directory /usr/share/phpMyAdmin/>
                   AddDefaultCharset UTF-8
                  
                   <IfModule mod_authz_core.c>
                    # Apache 2.4
                    <RequireAny>
                      Require ip 127.0.0.1
                      Require ip ::1
                    </RequireAny>
                   </IfModule>
                   <IfModule !mod_authz_core.c>
                    # Apache 2.2
                    Order Deny,Allow
                    Deny from All
                    Allow from 127.0.0.1
                    Allow from ::1
                   </IfModule>
                  </Directory>
                  

                  并用这个替换它:

                  <Directory /usr/share/phpMyAdmin/>
                   AddDefaultCharset UTF-8
                  
                   Order allow,deny
                   Allow from all
                  </Directory>
                  

                  并重启服务器:sudo service httpd restart

                  现在工作!

                  这篇关于将 phpMyAdmin 安装到 Amazon EC2 实例上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Set the variable result, from query(设置变量结果,来自查询)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                  Does MySQL have time-based triggers?(MySQL 有基于时间的触发器吗?)
                  is it possible to call a sql script from a stored procedure in another sql script?(是否可以从另一个 sql 脚本中的存储过程调用 sql 脚本?)
                  Procedure to loop through comma separated string is not working(遍历逗号分隔字符串的过程不起作用)

                  <i id='dblC9'><tr id='dblC9'><dt id='dblC9'><q id='dblC9'><span id='dblC9'><b id='dblC9'><form id='dblC9'><ins id='dblC9'></ins><ul id='dblC9'></ul><sub id='dblC9'></sub></form><legend id='dblC9'></legend><bdo id='dblC9'><pre id='dblC9'><center id='dblC9'></center></pre></bdo></b><th id='dblC9'></th></span></q></dt></tr></i><div id='dblC9'><tfoot id='dblC9'></tfoot><dl id='dblC9'><fieldset id='dblC9'></fieldset></dl></div>
                  <legend id='dblC9'><style id='dblC9'><dir id='dblC9'><q id='dblC9'></q></dir></style></legend>

                      <tbody id='dblC9'></tbody>
                  • <tfoot id='dblC9'></tfoot>

                      • <bdo id='dblC9'></bdo><ul id='dblC9'></ul>

                        <small id='dblC9'></small><noframes id='dblC9'>