Problem with the permissions in phpMyAdmin


I am using phpMyAdmin as a database manager on my Centos server, despite having access to all of them, in the phpMyAdmin.conf . I have SELinux turned off.

When trying to enter from my browser I get the following error:


Forbidden: You do not have permission to access / phpmyadmin / on this server

As a curiosity, putting the local server does not have access either from localhost .

Is phpMyAdmin 4.7.0 compatible with the PHP 7.1.4 version?

Previously with PHP 5.5 it worked correctly.

The versions of the technologies I use:

  • Centos 7.3 .
  • PHP 7.1.4 .
  • PHP MyAdmin 4.7.0 .
  • Apache 2.4.6 .
  • MySql 10 .

phpMyAdmin.conf :

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

   <IfModule mod_authz_core.c>
     # Apache 2.4
       #Require ip
       #Require ip ::1
       Require all granted
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from
     Allow from ::1

asked by TheMac 07.05.2017 в 11:21

1 answer


phpMyAdmin 4.7.0 supports PHP 5.5 to 7.1 and MySQL 5.5 or higher, so that's no problem.

I would recommend you look at what Apache is saying in your logs. Open the file /etc/httpd.conf and look for the directive LogFile , surely it is the directory /var/log/httpd

Once you are in the directory of the logs, make a cat *.log and paste here which is what it tells you.

answered by 20.07.2017 в 16:56