Welcome to Centmin Mod Community
Become a Member

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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    10:36 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    update centmin.sh menu option 22 wpsecure include file template in 123.09beta01

    - Update /usr/local/nginx/conf/wpincludes/${vhostname}/wpsecure_${vhostname}.conf template with Autoptimize fallback 404 nginx rewrite rule and also add additional security to wp-cloudflare-page-cache plugin to prevent it's debug.log from being publicly web accessible to everyone at /wp-content/wp-cloudflare-super-page-cache/yourdomain.com/debug.log when you install the wp plugin manually.
    - 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

    You can see an earlier example of this tools output at https://community.centminmod.com/threads/update-centmin-sh-menu-option-22-wpsecure-include-file-template-in-123-09beta01.20348/

    Continue reading...

    Centmin Mod Github Master branch

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