Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 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

The problem with this solution is that I don't have a phpmyadmin.conf file in that directory. I found this pertaining to that Phpmyadmin.conf does not exist in the phpmyadmin folder, but that didn't allow me to access.

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

I'm still getting the same For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname error and it's driving me mad.

Any ideas? If needed, I can readily post relevant content from configuration files.

like image 598
Prmths Avatar asked Oct 11 '13 21:10

Prmths


People also ask

How do I access phpMyAdmin on Bitnami?

You should be able to access phpMyAdmin directly, by browsing to http://127.0.0.1/phpmyadmin. Log in to phpMyAdmin by using the following credentials: Username: root. Password: The same as the application password.

Why is phpMyAdmin not connecting?

Database Connection Error. A database connection error means that your phpMyAdmin tool is not able to connect to the MySQL database. Usually, this is because the MAMP phpMyAdmin configuration file has the incorrect settings.

How do I access phpMyAdmin via SSH?

Access the phpMyAdmin console through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin. Log in to phpMyAdmin by using the following credentials: Username: root. Password: application password.


1 Answers

I faced the same issue. Though I was able to access phpMyAdmin by using the following steps

  1. SSH to the server using the following command

    ssh -N -L 8888:127.0.0.1:80 -i YourPemFile.pem bitnami@YourServerIP

  2. Then open the following link in your browser

    http://127.0.0.1:8888/phpmyadmin

  3. You will see the following page enter image description here

  4. Now just use root and the default wordpress password to login.

like image 167
Rishikesh Chandra Avatar answered Sep 17 '22 12:09

Rishikesh Chandra