Skip to main content

Forums

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

Viewing 11 posts - 1 through 11 (of 11 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>
    
    #182318

    Anonymous

    This reply has been reported for inappropriate content.

    Instead of doing it by IP (if your IP is changing), why not just password protect the directory:

    http://httpd.apache.org/docs/2.2/howto/auth.html

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

    chrisburton
    Participant

    This reply has been reported for inappropriate content.

    @notoriouspyro I no longer use phpMyAdmin but thank you for attaching a link for others.

    #192901

    __
    Participant

    This reply has been reported for inappropriate content.

    I no longer use phpMyAdmin…

    good solution. : )

    #192984

    chrisburton
    Participant

    This reply has been reported for inappropriate content.

    :)

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

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