Page 1 of 1

[DONE]cannot access phpmyadmin on localhost

PostPosted: May 1st, '24, 19:19
by markadewet
Firstly, apologies if there is a double post for this, my first post seems to have disappeared.
I installed the task-lamp-php according to the wiki, ran the mysql secure installation, restarted my PC and double-checked both the /etc/httpd/conf/site.d/phpmyadmin.conf and the /etc/httpd/conf/webapps.d/phpmyadmin.conf that the "allow 127.0.0.1" entry was there, so far so good. The issue is when I try to then access phpmyadmin on the local PC, I keep getting "Access denied per /etc/httpd/conf/webapps.d/phpmyadmin.conf" using either localhost OR 127.0.0.1.
What on earth am I missing?

Re: cannot access phpmyadmin on localhost

PostPosted: May 2nd, '24, 17:54
by doktor5000
Hi there,
so you basically did this? https://forums.mageia.org/en/viewtopic. ... 144#p85144

If you just access http://127.0.0.1 do you get the default "It works" apache website ?
For phpmyadmin you may need to check the logs, I can try to reproduce when I'm back at my mga9 box.
There are also no current bugreports for phpmyadmin so it should probably be working ...

Re: cannot access phpmyadmin on localhost

PostPosted: May 3rd, '24, 13:53
by markadewet
@dokto5000,
1: Yes, I basically installed as per the link.
2: Yes, if I access JUST localhost or 127.0.0.1 then I get "It works!"
3: Please could you advise where I would find the PHP logs? I have tried looking but could not find any. But in any case, it seems the webpage that is displayed when I http://localhost/phpmyadin pretty much explains the issue: "Access denied per /etc/httpd/conf/webapps.d/phpmyadmin.conf" so my question really is why is localhost being denied when its supposedly allowed in the .conf file?

Re: cannot access phpmyadmin on localhost

PostPosted: May 3rd, '24, 16:20
by doktor5000
I've just tested this on my default mga9 install, and I don't get any such error message, it just works and phpmyadmin opens.
Unrelated but there's a typo in your link, it should be http://localhost/phpmyadmin or http://127.0.0.1/phpmyadmin

Logs should be under /var/log/httpd
/var/log/httpd/access_log for accesses and /var/log/httpd/error_log for errors.

Re: cannot access phpmyadmin on localhost

PostPosted: May 3rd, '24, 17:03
by markadewet
@dokto5000,
Thank you for your reply, firstly apologies for the typo.
Secondly, I will check the logs in the folders you stipulated and see what I can find and get back with any issues.

Re: cannot access phpmyadmin on localhost

PostPosted: May 10th, '24, 23:00
by markadewet
Not to worry, I have decided to go back to Windows, as I find that most, if not all Linux OS's seem to have issues of one kind or another and I simply do not have the patience to try to resolve these issues. Having said that, my Router/Firewall is IPFire and it is a wonderful system as it have a really user-friendly GUI and is super easy to configure correctly. It just seems that the desktop Linux OS's seem to have some other characteristic that I either do not like or that I simply cannot resolve. Please note, though, I do like Mageia, it seems the most easy to use of all those I have tried (and believe me, I have tried a LOT!! LOL) and will most likely attempt to install it at some stage in the future again, but for now, it's back to Windows. Thank you.

Re: cannot access phpmyadmin on localhost

PostPosted: May 11th, '24, 00:30
by doktor5000
Please don't forget to mark the thread as done, by editing the subject of the first post and prefix it with [DONE], thanks in advance.