Access phpMyAdmin from remote computer

Often in the software implementation process we need phpMyAdmin access via a computer other than the server.
When passing through the access we get a message:
Forbidden You do not have permission to access `phpmyadmin` on this server.
To complete this, edit the /etc/httpd/conf.d/phpMyAdmin.conf file by adding the Require all granted line



<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 all granted
    
</RequireAny>
  
</IfModule>
  
<IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
  
</IfModule>
</Directory>

 

Restart your httpd service : #service httpd restart


Thank you for reading this blog. Hope this helps you.

No comments:

Post a Comment

Featured Post

Install gammu on centos 7

To install Gammu on CentOS 7, follow these steps: 1. Update the system: Bash sudo yum update 2. Install dependencies: Bash sudo yum install...