Thursday, June 23, 2016

Allow access to phpMyAdmin to all IP address on Fedora 23 and Apache httpd 2.4

If you've installed phpMyAdmin using yum on Fedora 23, you may be getting "Forbidden: You don't have permission to access /phpmyadmin/index.php on this server." messages in the browser when you try to open up the phpMyAdmin in the web browser.  Fix the problem like this: Edit /etc/httpd/conf.d/phpMyAdmin.conf and make the following changes:

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

No comments: