Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Constantly locked out of phpMyAdmin Reply To: Constantly locked out of phpMyAdmin

#182295
chrisburton
Participant

Basically, right now, I have it set to my current IP however, when it changes I have to go into the phpMyAdmin.conf file and change the IP every time I get locked out, restart Apache and then I’m good. But that’s incredibly annoying.

phpMyAdmin.conf:

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