Learn about Centmin Mod LEMP Stack today
Register Now

Master Branch update centmin.sh menu option 22 wpsecure include file template in 12…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Sep 16, 2020 at 8:42 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    45,155
    10,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,919
    Local Time:
    11:49 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    update centmin.sh menu option 22 wpsecure include file template in 123.09beta01

    - Add additional whitelisted wordpress plugins to the default /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf include file template generated where $(vhostname) is yourdomain.com for your wordpress site created via centmin.sh menu option 22. This will apply to newly created centmin.sh menu option 22 wordpress sites.
    - Add tools/wp-cache-enabler-generate.sh tool made for cache enabler cache plugin - can be used to generate the latest templates for centmin.sh menu option 22 Cache Enabler configured wordpres site's cache enabler map file = /usr/local/nginx/conf/wpcacheenabler_map.conf, cache enabler include file = /usr/local/nginx/conf/wpincludes/${vhostname}/wpcacheenabler_${vhostname}.conf, nginx vhost's try_files syntax and also wpsecure include file mentioned below. It will generate the updated templates as a separate file and provide a diff universal compare of your live version versus generated one and let you manually decide what changes to merge yourself. This is best compromise as opposed to me automatically overwriting any customisations users may have added to their configuration files.
    - Existing wordpress sites created via centmin.sh menu option 22 now have a newly added tools/wp-cache-enabler-generate.sh tool made for cache enabler cache plugin. But has an wpsecure generator option applicable to generated a new /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf with suffix in name = -generated-XXXXXX timestamped include file which you can use to compare with your existing one and then you can manually decide what to merge and keep yourself in the live /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf include file.
    - Existing users can on 123.09beta01 or newer can run cmupdate command to update locate Centmin Mod code and then run tools/wp-cache-enabler-generate.sh tool's wpsecure option to generate the newer wpsecure include file and it will also do a universal diff compare highlighting the differences between your existing wpsecure include file and your newly generated one with suffix in name.

    To run tools/wp-cache-enabler-generate.sh tool's wpsecure option in SSH session type:

    cd /usr/local/src/centminmod/tools
    ./wp-cache-enabler-generate.sh wpsecure youromain.com

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.