Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Centminmod + Letsencrypt setup
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Centminmod + Letsencrypt setup

sysamysysamy Member

I just installed centminmod for testing for a wordpress site and it's working great. It was optimized for speed and it's fast. Page speed is fast and caching works great. I even load tested it, and it performed well.

Now, I am trying to setup the letsencrypt ssl certificate on the site and I cannot find clear instructions.

I initially installed the domain without ssl, but reading through their forum is confusing.
Has anyone successfully added letsencrypt to centminmod?

If you did, can you share how you did it?

Thanked by 1eva2000

Comments

  • i use centos web panel so it have auto installer for letsencrypt and for setting up letsencrypt exactly correct you need to read forums of centos web panel.

  • BopieBopie Member

    Edit your /etc/centminmod/custom_config.inc file and add the following line.

    LETSENCRYPT_DETETC='y'

    Then save and run the WordPress script again, tell it no to generating a self-signed cert and then it well ask if you want to generate a LE cert

    Thanked by 1sysamy
  • sysamysysamy Member

    I don't have a /etc/centminmod/custom_config.inc file.

    I'll research why that is.

    @Bopie said:
    Edit your /etc/centminmod/custom_config.inc file and add the following line.

    LETSENCRYPT_DETETC='y'

    Then save and run the WordPress script again, tell it no to generating a self-signed cert and then it well ask if you want to generate a LE cert

  • BopieBopie Member

    @sysamy said:
    I don't have a /etc/centminmod/custom_config.inc file.

    I'll research why that is.

    @Bopie said:
    Edit your /etc/centminmod/custom_config.inc file and add the following line.

    LETSENCRYPT_DETETC='y'

    Then save and run the WordPress script again, tell it no to generating a self-signed cert and then it well ask if you want to generate a LE cert

    Some times you dont, just create it if you dont :)

  • oshqeuoshqeu Member
    edited May 2017

    Did you try https://centminmod.com/letsencrypt-freessl.html ? They is still in beta testing

    You want add SSL letsencrypt to your domain ?

    Nginx ?

  • eva2000eva2000 Veteran
    edited May 2017

    sysamy said: If you did, can you share how you did it?

    just approved your account on Centmin Mod community forums but for folks interested for Centmin Mod 123.09beta01 has letsencrypt integration support optionally available during beta testing

    details

    as well as official page guides for it at:

    sysamy said: I initially installed the domain without ssl, but reading through their forum is confusing. Has anyone successfully added letsencrypt to centminmod?

    you'd want the 2nd guide then https://centminmod.com/migrating-to-https.html

    Thanked by 1inthecloudblog
  • eva2000eva2000 Veteran
    edited May 2017

    Bopie said: Edit your /etc/centminmod/custom_config.inc file and add the following line.

    LETSENCRYPT_DETETC='y'

    missing a T from https://centminmod.com/acmetool

    During beta testing phase, you now have to specifically enable addons/acmetool.sh integration detection via setting up persistent config file /etc/centminmod/custom_config.inc variable LETSENCRYPT_DETECT='y'

    /etc/centminmod/custom_config.inc is a persistent config file you create yourself which can override centmin.sh menu options without you loosing your customisations on updates as outlined at https://centminmod.com/upgrade.html as well allow you to control enabling/disabling nginx dynamic module support i.e. FAQ item 39

    Once LETSENCRYPT_DETECT='y' is set, centmin.sh menu option 2, 22 and nv command based nginx vhost creation will detect addons/letencrypt.sh and automatically prompt you during nginx vhost creation if you want letsencrypt ssl certificate. Example for nv command line nginx vhost creation with letsencrypt ssl cert testing during recent letsencrypt downtime.

  • sysamysysamy Member

    I installed the stable branch, so I don't have access to the acme tools.
    Can I change to the beta branch?

    @eva2000

    @eva2000 said:

    sysamy said: If you did, can you share how you did it?

    just approved your account on Centmin Mod community forums but for folks interested for Centmin Mod 123.09beta01 has letsencrypt integration support optionally available during beta testing

    details

    as well as official page guides for it at:

    sysamy said: I initially installed the domain without ssl, but reading through their forum is confusing. Has anyone successfully added letsencrypt to centminmod?

    you'd want the 2nd guide then https://centminmod.com/migrating-to-https.html

  • eva2000eva2000 Veteran
    edited May 2017

    sysamy said: I installed the stable branch, so I don't have access to the acme tools. Can I change to the beta branch?

    might want to ask on official forums as I frequent it more often than here - forum for it would be https://community.centminmod.com/forums/install-upgrades-or-pre-install-questions.8/

    1st post at https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/ outlines how to switch branches via centmin.sh menu option 23

    How to switch to 123.09beta01 branch ?

    If you're using Centmin Mod 1.2.3-eva2000.08 stable release (123.08stable branch) and have setup git environment via centmin.sh menu option 23 submenu 1. Then switching from 123.08stable branch to 123.09beta01 branch is easy via centmin.sh menu option 23 submenu option 3 (you can switch between 123.09beta01 back to 123.08 stable via same submenu option 3 too).

    >

    If you already have centmin.sh option 23 submenu option 1 setup for git environment, go straight to centmin.sh option 23 submenu option 3. If you have yet to run centmin.sh option 23 submenu option 1, follow guide at https://centminmod.com/upgrade.html.

    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 23
    --------------------------------------------------------
    

    and submenu

    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 3
    --------------------------------------------------------
    

    Then hit submenu option 4 to go back to main menu on centmin.sh and then hit centmin.sh menu option 24 to exit. Then you need to change into the directory again for /usr/local/src/centminmod as it's a new directory under 123.09beta01 code

    cd /usr/local/src/centminmod

    Then you can do continuous updates for 123.09beta01 branch. As you have git environment setup, updating is as easy as using centmin.sh menu option 23 submenu option 2.

    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 4 ] 2
    --------------------------------------------------------
    

    or git command method and auto cronjob updates outlined at https://community.centminmod.com/threads/cronjob-auto-updating-centmin-mod-code-guide.3398/

    cd /usr/local/src/centminmod
    git stash
    git pull
    

    personally i just use git command line method with cronjob auto updating setup to update every 8hrs :)

    when 123.09beta01 goes stable 123.09stable, the same method for updating via centmin.sh menu option 23 submenu option 3 will be used. 123.09beta01 is only beta as waiting on me to write up all the updated documentation, guides, faq for official centminmod.com site as that info is only on the official forums right now (hence good place for centmin mod users to be ;) )

  • eva2000eva2000 Veteran

    and if you are unsure of where to call centmin.sh from see https://centminmod.com/menu.html

  • jarjar Patron Provider, Top Host, Veteran

    I had seen the talk of a beta feature for it but also couldn't, for the life of me, figure out how to install/setup/enable said feature the last time I checked (about a month or two ago I guess). So just a +1 to the idea that you're not crazy.

    Anyone new to using centminmod who hadn't extensively read things that seem to be in no one particular place would be equally as confused. Which, I suppose, is okay given it hasn't been a standard feature of the script yet. It just adds extra confusion when there's constant references to it all over the site and no clear and up front path to figure out how to enable what is referenced.

    So useful thread. I'm the type to give up searching/reading after about 10 minutes ;)

  • eva2000eva2000 Veteran

    Yeah 123.09beta01 has alot of new and improved features with info all on the forums right now - it's only reason it's still beta as you can imagine it takes alot of work to update documentation, guides and faqs for official site given the list of features in change log https://centminmod.com/changelog.html. I want to update centminmod.com site with all the written info relevant to 123.09beta01 before going stable. Eventually, you will be able to find the info on official centminmod.com once done :)

    Guide to learning about Centmin Mod at https://community.centminmod.com/threads/guide-to-learning-more-about-centmin-mod.10838/. Of course it requires reading ^_^

  • eva2000eva2000 Veteran

    @sysamy

    example for switching from 123.08stable to 123.09beta01 branch via centmin.sh menu option 23 submenu option 3

        --------------------------------------------------------
                Centmin Mod Updater Sub-Menu              
        --------------------------------------------------------
        1). Setup Centmin Mod Github Environment
        2). Update Centmin Mod Current Branch
        3). Update Centmin Mod Newer Branch
        4). Exit
        --------------------------------------------------------
        Enter option [ 1 - 4 ] 3
        --------------------------------------------------------
    
        fetching latest branch list...
    
        Update Centmin Mod to newer branch via git
        You need to input the name of the branch
        List of current remote branches by descending date order
    
        123.09beta01
        123.08stable
    
        Enter the branch name you want to switch to i.e. 123.09beta01 : 123.09beta01
    
    
        download github.com centmin mod 123.09beta01 branch repo
        time git clone -b 123.09beta01 --depth=1 https://github.com/centminmod/centminmod.git centminmod
        Cloning into 'centminmod'...
    
        real    0m1.634s
        user    0m0.280s
        sys     0m0.136s
    
        list all available local branches
                git branch -a
        * 123.09beta01
          remotes/origin/123.09beta01
    
        list git log last commit
                git log -a
        commit 071704dc6e8548c184d55080eda4a00abbf9e9e8
        Author: George Liu <snipped>
        Date:   Mon May 29 11:19:36 2017 +1000
    
            update inc/updater_submenu.inc
    
            exclude some branches for change branch listing
    
        to update centmin mod 123.09beta01 branch repo via git
                cd /usr/local/src/centminmod
                git stash
                git pull
                chmod +x centmin.sh
    
        ####################### IMPORTANT #######################
         To complete update 
        ####################### IMPORTANT #######################
         run:
    
          cd /usr/local/src/centminmod
    
         before invoking centmin.sh again
        ####################### IMPORTANT #######################
    
  • ljsealsljseals Member
    edited May 2017

    @jarland said:
    I had seen the talk of a beta feature for it but also couldn't, for the life of me, figure out how to install/setup/enable said feature the last time I checked (about a month or two ago I guess). So just a +1 to the idea that you're not crazy.

    Anyone new to using centminmod who hadn't extensively read things that seem to be in no one particular place would be equally as confused. Which, I suppose, is okay given it hasn't been a standard feature of the script yet. It just adds extra confusion when there's constant references to it all over the site and no clear and up front path to figure out how to enable what is referenced.

    So useful thread. I'm the type to give up searching/reading after about 10 minutes ;)

    Not to thread cap but the centmin mod forum is the best and the easiest way to not only
    learn but become astute in the aspects of the software. In order to make the software accessible to a wide range of setups @Eva2000 has some "non-traditional" ways of setting up a server up but honestly if you wanted traditional no doubt you would not get the supreme performance that you can accomplish with centmin mod.

    In fact if you read diligently there are easter eggs that will make it go even faster than the initial setup. Most of the traditional software has already been introduced in some aspect if just takes a quick search to see how to install it by looking at the forum. You have a software that needs nodejs, search the forum and you will be able to see how to install it. Most setups are painless and for a newb it is a fascinating and refreshing experience to learn and become adept at linux system administration.

    I have yet to find a faster and easier solution that @Eva2000 has presented here with this software. Through the help of the Lord I am positive, that it not only takes incredible "smarts" but a "genius mind" to come up with a complete solution such as this. I thank the Lord for him. God bless you!

    Thanked by 1eva2000
  • eva2000eva2000 Veteran

    thanks @ljseals for kind words

    ljseals said: In fact if you read diligently there are easter eggs that will make it go even faster than the initial setup.

    Centmin Mod Insights forum is one such place for those easter eggs https://community.centminmod.com/forums/centmin-mod-insights.20/ :)

    i.e.

    Unfortunately, anything worth while learning requires time reading up on :)

    Thanked by 1ljseals
  • jarjar Patron Provider, Top Host, Veteran
    edited May 2017

    There does come a point where too much time spent learning something that was designed to save time ends up not saving any time. At least it feels like something that was designed to save people time and effort. Just my 2c. Obviously love the script and thank you for contributing to the community :)

  • eva2000eva2000 Veteran
    edited May 2017

    Indeed understand your point.. that's how I feel about inhouse @domain.com email setups versus just saving time with 3rd party @domain.com providers :) To each his own ^_^

Sign In or Register to comment.