Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't access phpmyadmin #1146

Open
zzzh opened this issue Sep 10, 2023 · 4 comments
Open

can't access phpmyadmin #1146

zzzh opened this issue Sep 10, 2023 · 4 comments
Assignees
Labels
how-to How to issues reported by users phpmyadmin triage Triage is needed

Comments

@zzzh
Copy link

zzzh commented Sep 10, 2023

Describe your issue as much as you can

Hi,

I was trying to access phpadmin following your this article: https://docs.bitnami.com/virtual-machine/faq/get-started/access-phpmyadmin/

I checked event log of putty, looks like everything works fine:
2023-09-10 15:33:36 Access granted
2023-09-10 15:33:36 Local port 8888 forwarding to localhost:80
2023-09-10 15:33:36 Opening main session channel
2023-09-10 15:33:36 Opened main channel
2023-09-10 15:33:36 Allocated pty
2023-09-10 15:33:36 Started a shell/command

But, when I try to access phpadmin by this address in edge browser: http://127.0.0.1:8888/phpmyadmin
it always say:
Hmmm… can't reach this page
The connection was reset.
in event log, it would say like this:
2023-09-10 15:38:22 Opening connection to localhost:80 for forwarding from 127.0.0.1:54898
2023-09-10 15:38:22 Opening connection to localhost:80 for forwarding from 127.0.0.1:54899
2023-09-10 15:38:22 Forwarded connection refused by remote: Connect failed [Connection refused]
2023-09-10 15:38:22 Forwarded connection refused by remote: Connect failed [Connection refused]

The OS I'm using is Windows 10, I tried to add a firewall rule to let 8888 port pass, but it still don't work.
Any ideas?

@zzzh zzzh added the how-to How to issues reported by users label Sep 10, 2023
@github-actions github-actions bot added the triage Triage is needed label Sep 10, 2023
@zzzh zzzh changed the title can't access phpadmin can't access phpmyadmin Sep 10, 2023
@gongomgra
Copy link
Collaborator

Hi @zzzh,

Thanks for using Bitnami. Can you check the Apache logs in the server to try to find what's happening? Can you also run the bndiagnostic tool and share the generated code with us?

https://docs.bitnami.com/general/how-to/understand-bndiagnostic/

@zzzh
Copy link
Author

zzzh commented Sep 12, 2023

Hi, @gongomgra ,

Happy to use Bitnami, it's awesome.

Here's the content of /opt/bitnami/apache/logs/error_log:
[Sun Sep 10 10:00:25.045716 2023] [mpm_event:notice] [pid 1205:tid 140665075145728] AH00489: Apache/2.4.57 (Unix) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Sep 10 10:00:25.045883 2023] [core:notice] [pid 1205:tid 140665075145728] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf'
[Sun Sep 10 11:48:52.241251 2023] [mpm_event:notice] [pid 1205:tid 140665075145728] AH00491: caught SIGTERM, shutting down
[Sun Sep 10 11:49:34.400107 2023] [mpm_event:notice] [pid 237:tid 139702136581120] AH00489: Apache/2.4.57 (Unix) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Sep 10 11:49:34.401678 2023] [core:notice] [pid 237:tid 139702136581120] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf'
[Sun Sep 10 14:34:39.691588 2023] [core:warn] [pid 237:tid 140236508351488] AH00098: pid file /opt/bitnami/apache/var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Sep 10 14:34:39.702421 2023] [mpm_event:notice] [pid 237:tid 140236508351488] AH00489: Apache/2.4.57 (Unix) OpenSSL/1.1.1n configured -- resuming normal operations
[Sun Sep 10 14:34:39.702675 2023] [core:notice] [pid 237:tid 140236508351488] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf'

Here's the output from the bndiagnostic tool( blank lines removed to increase readability here):
===== Begin of bndiagnostic tool output =====
? Apache: No issues found
? Processes: No issues found
? Resources: No issues found
? Php: No issues found
? Mariadb: No issues found
? Connectivity: Found possible issues
[Connectivity]
Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:
https://docs.bitnami.com/general/faq/administration/use-firewall/
===== End of bndiagnostic tool output =====

By the way, I didn't change anything in this image, just not change the default password...

I tried to change the default password, now it works!

Problem solved, thank you so much for the reply.

@Morfonio
Copy link

Morfonio commented Oct 3, 2024

Hi @zzzh,

I have what I believe is the same problem you had.

You said you tried changing the default password and that worked for you. What command or steps did you use to make this change?

@gongomgra
Copy link
Collaborator

Hi @Morfonio,

First of all please take into account that phpMyAdmin is only accessible through an SSH tunnel for security reasons. Initial root password should work using the tunnel. Are you having issues using this method?

https://docs.bitnami.com/aws/faq/get-started/access-phpmyadmin/

You can get more information on how to reset the MariaDB root user password in our guide linked below

https://docs.bitnami.com/general/infrastructure/lamp/administration/change-reset-password-mariadb/

You should be able to log into phpmyadmin with the root user and the new password (remember, via the SSH tunnel) afterwards. Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how-to How to issues reported by users phpmyadmin triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants