gpt4 book ai didi

amazon-web-services - 无法连接到 AWS 托管的 Bitnami 实例中的 phpmyadmin

转载 作者:行者123 更新时间:2023-12-04 02:36:52 24 4
gpt4 key购买 nike

我正在尝试通过我的公共(public) DNS 连接到 phpmyadmin,但我似乎无法让它工作。

我已经尝试遵循这些指示:

Can't Access PHPMyAdmin

By default phpMyAdmin is restricted to localhost. If you want it to be accessible from anywhere you should follow the steps described in “How to enable phpMyAdmin or phpPgAdmin?” in virtual machines FAQ:

SSH to the instance Replace the line “Allow from 127.0.0.1” with “Allow from all” in the file /opt/bitnami/apps/phpmyadmin/conf/phpmyadmin.conf Restart apache: sudo /opt/bitnami/ctlscript.sh restart apache



此解决方案的问题是我在该目录中没有 phpmyadmin.conf 文件。我发现这与 Phpmyadmin.conf does not exist in the phpmyadmin folder 有关,但这不允许我访问。

Check the /opt/bitnami/apps/phpmyadmin/htdocs/config.inc.php and change the “$cfg[‘PmaAbsoluteUri’]” option with your URL.



我还是一样 For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname错误,这让我发疯。

有任何想法吗?如果需要,我可以很容易地从配置文件中发布相关内容。

最佳答案

我遇到了同样的问题。虽然我可以使用以下步骤访问 phpMyAdmin

  • 使用以下命令 SSH 到服务器

    ssh -N -L 8888:127.0.0.1:80 -i YourPemFile.pem bitnami@YourServerIP
  • 然后在浏览器中打开以下链接

    http://127.0.0.1:8888/phpmyadmin
  • 您将看到以下页面
    enter image description here
  • 现在只需使用 root 和默认的 wordpress 密码登录。
  • 关于amazon-web-services - 无法连接到 AWS 托管的 Bitnami 实例中的 phpmyadmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19327531/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com