Get the most out of your Centmin Mod LEMP stack
Become a Member

Hi! Loving CentMinMod!

Discussion in 'Introductions' started by ethanpil, Nov 8, 2015.

  1. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    12:05 AM
    I discovered CentMinMod a few months ago through Google. Have been waiting for a chance to play with it and finally got it on a new Linode and i'm loving it! Thanks for all the hard work, it really shows. This is such a lean, mean secure hosting machine!

    A couple of requests:

    1) I would love a menu option for simple WordPress install, or enhance the current one making the features optional, more options, for example: Choose if I want the htpasswd security, choose my own wp username/password, disable plugins install, dont install supercache, etc.


    2) Would love a menu option to delete a domain and files and nginx config

    3) option to create db and users

    Thanks again!
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    welcome @ethanpil to Centmin Mod Community :)

    There's already a Centmin Mod installer on centmin.sh menu option 23 see Centmin Mod What's New - CentminMod.com LEMP Nginx web stack for CentOS and Wordpress Nginx Auto Installer (WP Super Cache) However, it's for Super Cache which you can uninstall the plugin and change nginx vhost to remove Super Cache if you want. There's also guide to manually switch from WP Super Cache to Nginx Redis level WP caching which is 40+ % faster than WP Super Cache.

    Right now deleting domains is a manual process, and commands for it are outputted at Nginx vhost domain creation time Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS and also saved in nginx vhost creation logs at /root/centminlogs. I tend to emphasize importance on users data, so don't want to make it too easy to accidentally delete your entire site unless you're making a conscious manual effort to do it.

    See MySQL page for managing users and databases MariaDB MySQL - CentminMod.com LEMP Nginx web stack for CentOS and Getting Started Guide step 11. My fav is to use mysqladmin_shell.sh Shell based Addon | Centmin Mod Community

    Threads you might want to participate in ;)

    Threads to read, pages to bookmark and threads to watch/subscribe to get to know Centmin Mod would include:
    Premium Membership
     
  3. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    12:05 AM
    Thanks for the welcome and I appreciate the response. Will take a look at the Redis cache option. But I still would love a vanilla WP option. Don't know what others think but I have my own stack of preferred WordPress plugins and its very time consuming to delete and reconfigure. Particularly the htpasswd configuration.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    WP installer menu option 23 uses WP-CLI command line to install WP core and plugins so can be used to remove or disable plugins just as easily.

    So to deactivate or reactive WP plugin using commands Built-in Commands | WP-CLI

    Plugin command wp plugin | WP-CLI

    Code:
    cd /home/nginx/domains/yourdomain.com/public
    wp plugin activate wp-super-cache --allow-root
    wp plugin deactivate wp-super-cache --allow-root
    chown -R nginx:nginx /home/nginx/domains/yourdomain.com/public/wp-content/plugins/
    To remove a WP Plugin

    Code:
    cd /home/nginx/domains/yourdomain.com/public
    wp plugin delete wp-super-cache --allow-root
    chown -R nginx:nginx /home/nginx/domains/yourdomain.com/public/wp-content/plugins/
    chown is if you install plugins

    FYI, code used in centmin.sh menu option 23 for 123.08 stable at centminmod/wpsetup.inc at 123.08stable · centminmod/centminmod · GitHub
     
    Last edited: Jan 28, 2016
  5. ethanpil

    ethanpil Active Member

    173
    55
    28
    Nov 8, 2015
    Ratings:
    +101
    Local Time:
    12:05 AM
    Great, thanks. I will take a look and modify to my needs, and I will post back here. Perhaps it would make a good option 23B :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,907
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    12:05 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+