Skip to main content

Forums

This topic contains 10 replies, has 6 voices, and was last updated by  chrisburton 4 years, 4 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #182292

    chrisburton
    Participant

    What’s the best way to setup phpMyAdmin with a dynamic IP? I keep getting locked out and it has become annoying!

    #182294

    Alen
    Participant

    Can you elaborate little bit?

    Where, how are you setting this up?

    Can you set up a static IP?

    #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>
    
    #182331

    chrisburton
    Participant

    @BenWalker The only problem with the password protected directory is that it’s not as secure as requiring a specific IP. I was hoping I could, in some way, auto update the phpMyAdmin.conf file with my current IP.

    #182375

    JamesBurton
    Participant

    ( @chrisburton ) Hello Chris,

    Could you create VPN (Virtual Private Network) on your server network?

    James Burton

    #182400

    chrisburton
    Participant

    Could you create VPN (Virtual Private Network) on your server network? – @jamesburton

    I could. I’ve never dealt with VPN’s before, however.

    #192837

    NotoriousPyro
    Participant
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star