Learn about Centmin Mod LEMP Stack today
Become a Member

Prevent scripts from running

Discussion in 'Other Centmin Mod Installed software' started by Jon Snow, Nov 8, 2017.

  1. Jon Snow

    Jon Snow Active Member

    188
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    2:13 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    Is there a list of all the scripts that run by default after setting up CMM? How would one go about disabling specific scripts from running? For example, autoprotect.sh.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,579
    6,854
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,275
    Local Time:
    4:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    There's isn't a list of reports but for autoprotect.sh just commenting out the cronjob and include file in your nginx vhost should disable it. So from Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community

    comment out cronjob with hash # in front
    Code (Text):
    #0 */4 * * * /usr/local/src/centminmod/tools/autoprotect.sh
    

    and nginx vhost include file comment out with hash # in front
    Code (Text):
    #include /usr/local/nginx/conf/autoprotect/domain.com/autoprotect-domain.com.conf;
    

    then restart nginx server
    Code (Text):
    ngxrestart
    
     
    • Informative Informative x 1