Welcome to Centmin Mod Community
Register Now

centmin.sh Pre-check if DNS exist to prevent errors

Discussion in 'Feature Requests & Suggestions' started by EckyBrazzz, Aug 23, 2019.

  1. Yes

    100.0%
  2. No

    0 vote(s)
    0.0%
  1. EckyBrazzz

    EckyBrazzz Active Member

    854
    173
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +317
    Local Time:
    10:07 AM
    Latest
    Latest
    A great improvement would be that there was a Pre-check on Centmin to prevent errors when creating a new domain. As example I use below the option 22, but guess it would be useful for option 2 as well.
    Code (Text):
    -------------------------------------------------------------
    Setup full Nginx vhost + Wordpress + WP Plugins
    -------------------------------------------------------------
    
    ---------------------------------------------------------------
    Important Information
    ---------------------------------------------------------------
    
    You are about to create an Wordpress based Nginx vhost site with
    or without HTTPS/SSL support.
    Also read the continually updated Getting Started Guide
    at centminmod.com/getstarted.html if you haven't already
    ---------------------------------------------------------------
    403 Permission denied message handling
    if after vhost site setup you encounter 403 permission denied errors,
    check https://community.centminmod.com/threads/11215/ to see if your
    site needs tools/autoprotect.sh tweaking & whitelisting
    ---------------------------------------------------------------
    
    Do you want to continue with Nginx vhost site creation ? [y/n] y
    
    Enter vhost domain name you want to add (without www. prefix): domain.com
    

    Directly after this part Centmin should check if the domain exists, DNS is ok and so.

    This will prevent the needless creation / removal of a domain / dbase and user with errors in Let's encrypts and several others (guess there are).

    Many times I needed to delete the dbase and User, run the wp_uninstall script, resolve my issue and run Centmin mod again to create a domain without any issue.

    With let's encrypt you have to wait 7 days if you hit the limit if you changed several times the domain for testing. Maybe this is less relevant to mention.

    But yes, create a Pre-check to avoid any issues after that first steps.(y)
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,697
    357
    83
    May 31, 2014
    Ratings:
    +688
    Local Time:
    3:07 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    I prefer to keep it as it is. It may be needed to create a domain that doesn't exist and use hosts file for it.
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    854
    173
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +317
    Local Time:
    10:07 AM
    Latest
    Latest
    @pamamolf Yes, oke, after warning. DNS / domains does not exist, are you sure to continue?
     
  4. eva2000

    eva2000 Administrator Staff Member

    43,132
    9,792
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,122
    Local Time:
    11:07 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    There usually is a check for dns just before letsencrypt stage for centmin.sh option 2 but it's slightly different for centmin.sh menu option 22. There's no user prompt checks for nv cli method as it's meant to be unattended. But centmin.sh menu option 2 and 22 should ave a notice before letsencrypt stage mentioning need for working DNS though heh
     
    • Like Like x 1