Page 1 of 2

Error 404 when call phpMyAdmin

PostPosted: 15. July 2022 20:45
by Cezar Apulchro
I have installed phpMyAdmin on Centos 8 server I believe that the installation was ok but when I call the phpMyAdmin in my browser I'm receiving "Error 404".
Thanks in advance by any help.

Re: Error 404 when call phpMyAdmin

PostPosted: 16. July 2022 23:28
by Nobbie
Error 404 means, Apache cannot find the file or folder. Where did you install phpmyadmin, what do you enter into the browser and what is the DocumentRoot?

Re: Error 404 when call phpMyAdmin

PostPosted: 19. July 2022 11:21
by Cezar Apulchro
My phpMyAdmin are installed in: /var/www/phpMyAdmin
I'm calling in my browser: http://localhost/phpMyAdmin

Sorry by delay.

Re: Error 404 when call phpMyAdmin

PostPosted: 20. July 2022 09:14
by Nobbie
Xampps DocumentRoot is /opt/lampp/htdocs, not /var/www

If you installed different stack than Xampp, ask in an appropriate forum where the DocumentRoot is. We cannot know all distributions here.

Re: Error 404 when call phpMyAdmin

PostPosted: 20. July 2022 11:22
by Cezar Apulchro
http://ServerIP/phpmyadmin and http://HostName/phpmyadmin too.

Re: Error 404 when call phpMyAdmin

PostPosted: 20. July 2022 11:45
by Cezar Apulchro
When I opened this contact I have installed the phpMyAdmin following an link of the web that have this path, by don't have know to solve the error I uninstall the phpMyAdmin and reinstall phpmyadmin following another web link and the path is another that is /usr/share. I don't find any installation of phpmyadmin using Xampps DocumentRoot.

Re: Error 404 when call phpMyAdmin

PostPosted: 20. July 2022 22:26
by Nobbie
Did you install Xampp?

Re: Error 404 when call phpMyAdmin

PostPosted: 21. July 2022 10:50
by Cezar Apulchro
No I don't have installed xampp, I have installed Apache, MySQL, PHP, phpMyAdmin in my VPS Server manually.

Re: Error 404 when call phpMyAdmin

PostPosted: 21. July 2022 11:27
by Nobbie
Ask your provider, we do not support third party providers neither Linux Distributions. This as also not a phpmyadmin issue, you obviously dont know where to install PHP Scripts on your VPS. I cannot tell you that. I have no clue about your server.

Actually, i really wonder why you enter http://localhost/phpMyAdmin into your browser, your VPS server *should* have a real Domain name? "localhost" is your PC where your browser is running, instead of localhost you should provide the Domain name you reserved from your provider.

Re: Error 404 when call phpMyAdmin

PostPosted: 21. July 2022 12:33
by Cezar Apulchro
My wrong.
But still same problem with: "http://ServerIP/phpmyadmin" and "http://HostName/phpmyadmin" too.

Re: Error 404 when call phpMyAdmin

PostPosted: 21. July 2022 12:56
by Nobbie
Above you wrote phpMyAdmin with capital M and A - folder names are case sensitive. If it still dont works, ask your provider, we cannot solve this here.

Re: Error 404 when call phpMyAdmin

PostPosted: 23. July 2022 14:52
by Cezar Apulchro
Hi, I followed this link to install phpMyAdmin: https://www.rosehosting.com/blog/how-to-install-phpmyadmin-on-centos-8/

Re: Error 404 when call phpMyAdmin

PostPosted: 23. July 2022 19:04
by Nobbie
There is a 24/7 support, ask them. Its not my tutorial. Tell them, it does not work.

Re: Error 404 when call phpMyAdmin

PostPosted: 26. July 2022 22:16
by Cezar Apulchro
Hi, now I receiving an error that is more clarify but I don't have knowledge to solve, the error is:

Forbidden
You don't have permission to access this resource.

My phpmyadmin.conf:
Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin/>
AddDefaultCharset UTF-8

<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
Require ip xxx.xxx.xxx.xx
Require ip 127.0.0.1 xxx.xxx.xxx.xx
Require all granted
</RequireAny>
</IfModule>

<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from 127.0.0.1
Allow from ::1
Allow from xxx.xxx.xxx.xx
</IfModule>
</Directory>

Can you help me?

Re: Error 404 when call phpMyAdmin

PostPosted: 25. November 2023 13:02
by nisha6
I think the error message indicates that you do not have permission to access the phpMyAdmin directory. To fix this, you need to make sure that the user that Apache is running has read permissions for the phpMyAdmin directory. You can do this by adding the following line to your phpMyAdmin.conf file:

<Directory /usr/share/phpmyadmin/>
<FilesMatch .*>
Order allow,deny
Allow from all
</FilesMatch>
</Directory>

Once you have added this line, you should restart Apache and you should be able to access phpMyAdmin. thanks