[DONE]cannot access phpmyadmin on localhost

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[DONE]cannot access phpmyadmin on localhost

Postby markadewet » May 1st, '24, 19:19

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?
Last edited by markadewet on May 15th, '24, 10:36, edited 1 time in total.
markadewet
 
Posts: 4
Joined: May 1st, '24, 14:42
Location: Cape Town, South Africa

Re: cannot access phpmyadmin on localhost

Postby doktor5000 » May 2nd, '24, 17:54

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 ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18049
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: cannot access phpmyadmin on localhost

Postby markadewet » May 3rd, '24, 13:53

@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?
markadewet
 
Posts: 4
Joined: May 1st, '24, 14:42
Location: Cape Town, South Africa

Re: cannot access phpmyadmin on localhost

Postby doktor5000 » May 3rd, '24, 16:20

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18049
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: cannot access phpmyadmin on localhost

Postby markadewet » May 3rd, '24, 17:03

@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.
markadewet
 
Posts: 4
Joined: May 1st, '24, 14:42
Location: Cape Town, South Africa

Re: cannot access phpmyadmin on localhost

Postby markadewet » May 10th, '24, 23:00

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.
markadewet
 
Posts: 4
Joined: May 1st, '24, 14:42
Location: Cape Town, South Africa

Re: cannot access phpmyadmin on localhost

Postby doktor5000 » May 11th, '24, 00:30

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18049
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest