sql >> Base de Datos >  >> Database Tools >> phpMyAdmin

No se puede conectar a phpmyadmin en la instancia de Bitnami alojada por AWS

Al mirar este artículo (¿Cómo habilitar el acceso remoto a phpMyAdmin o phpPgAdmin? ), necesitaba estar mirando Máquina virtual y no nube de Amazon / Bitnami Hosting .

Cuando cambié el /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf archivo a lo siguiente, pude acceder a través de [PUBLIC_DNS/YOUR_DOMAIN_NAME/IP]/phpmyadmin].

Los principales cambios son:

Allow from all

y

Require all granted

Después de los cambios, recuerde reiniciar el servidor apache . (o reinicie su instancia)

sudo /opt/bitnami/ctlscript.sh reiniciar apache

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

<Directory "/opt/bitnami/apps/phpmyadmin/htdocs">
# AuthType Basic
# AuthName phpMyAdmin
# AuthUserFile "/opt/bitnami/apache2/users"
# Require valid-user
AllowOverride None

<IfModule php5_module>
        php_value upload_max_filesize 80M
php_value post_max_size 80M
</IfModule>

<IfVersion < 2.3 >
Order allow,deny
Allow from all
Satisfy all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
</Directory>

Referencia de documentos:https://docs.bitnami.com/virtual-machine/components /phpmyadmin/