Can't connect to phpmyadmin in Bitnami instance hosted by AWS

后端 未结 4 1202
日久生厌
日久生厌 2020-12-24 09:16

I\'m trying to connect to phpmyadmin through my Public DNS and I can\'t seem to get it to work.

I\'ve tried following these directions:

Can\'t Access PHPMyA

4条回答
  •  心在旅途
    2020-12-24 09:47

    When looking at this article (How to enable phpMyAdmin or phpPgAdmin to be accessed remotely?), I needed to be looking at Virtual Machine and not Amazon cloud / Bitnami Hosting.

    When I changed the /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf file to the following, I was able to access via [PUBLIC_DNS/YOUR_DOMAIN_NAME/IP]/phpmyadmin].

    Main changes being:

    Allow from all
    

    and

    Require all granted
    

    After the changes, remember to restart apache server. (or reboot your instance)

    sudo /opt/bitnami/ctlscript.sh restart apache

    /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf

    
    # AuthType Basic
    # AuthName phpMyAdmin
    # AuthUserFile "/opt/bitnami/apache2/users"
    # Require valid-user
    AllowOverride None
    
    
            php_value upload_max_filesize 80M
    php_value post_max_size 80M
    
    
    
    Order allow,deny
    Allow from all
    Satisfy all
    
    = 2.3>
    Require all granted
    
    ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
    
    

    Docs Ref: https://docs.bitnami.com/virtual-machine/components/phpmyadmin/

提交回复
热议问题