0

Hi everyone i am getting this error now is more than 7 hours but i still have know luck "You don't have permission to access /phpmyadmin on this server". I followed the instructions and examples on the internet but i still get the same error.here is my how my file path "etc/httpd/conf.d/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 52.28.232.215 
       </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
    # Apache 2.2
    # Order Allow,Deny
      Deny from All
      Allow from All
     # Allow from 127.0.0.1
      #Allow from ::1
       Allow from 52.28.232.215 
      </IfModule>
    </Directory>

   <Directory /usr/share/phpMyAdmin/setup/>
     <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
      # Require ip 127.0.0.1
      Require ip 52.28.232.215
      # Require ip ::1
    </RequireAny>
 </IfModule>
 <IfModule !mod_authz_core.c>
    # Apache 2.2
    # Order Allow,Deny
    #Deny from All
    #Allow from 127.0.0.1
    # Allow from ::1
    Allow from 52.28.232.215

    Allow from All

   </IfModule>
</Directory>
Isaac Bennetch
  • 11,830
  • 2
  • 32
  • 43
Reginwaldt Led
  • 369
  • 3
  • 9
  • 19
  • Any hint in the webserver error log? – Isaac Bennetch Aug 10 '15 at 01:02
  • hey i just got the answer now but i have a little problem i've createdth @Isaac Bennetch virtualHost and run the permission commands but i keep on getting this error "file_put_contents(/var/www/html/kidio/mergeogle/laravel/storage/framework/sessions/2a70352d4c64b8245c86102bf448010a67b19798): failed to open stream: Permission denied" i clear my cache but still – Reginwaldt Led Aug 10 '15 at 01:45
  • What exactly are you doing when you get that error? That's not related to phpMyAdmin for sure. – Isaac Bennetch Aug 10 '15 at 02:32
  • @IsaacBennetch am actually trying to setup laravel 5 – Reginwaldt Led Aug 10 '15 at 02:47
  • Ah, okay. I was thrown off because you mentioned phpMyAdmin in the subject and the section of the Apache configuration dealt with phpMyAdmin. Glad you got it sorted! – Isaac Bennetch Aug 10 '15 at 13:52

1 Answers1

0

I finally fixed this issue

added

 Required all granted 

on the first

 # Apache 2.4

I was not aware that my apache is 2.4+ Thanks

Reginwaldt Led
  • 369
  • 3
  • 9
  • 19