Join the community today
Become a Member

Wordpress Option 22 Install Feedback

Discussion in 'Blogs & CMS usage' started by cloud9, Dec 9, 2022.

  1. cloud9

    cloud9 Premium Member Premium Member

    358
    100
    43
    Oct 6, 2015
    England
    Ratings:
    +184
    Local Time:
    9:49 AM
    1.23.2
    10.6.x
    Never have done a WP install on CMM before I have the following to report


    One of the plugins appears to be not updated - The Google One

    Google Native LazyLoad Plugin Native Lazyload

    And is there a way of having WP installed vanilla on option 22 - with no add ons ie no cache (there is a choice of 3 so you have to install 1)

    Yes I can do vanilla it with option 2 and ftp etc but be nice if WP opt 22 had a vanilla install option as most would click 22 as it says Wordpress there
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    7:49 PM
    Nginx 1.21.x
    MariaDB 10.x
    Yeah probably can remove that plugin for out of box installs now. Though this should still work sticky in this forum https://community.centminmod.com/th...menu-option-22-installs-in-123-09beta01.8119/ which links to https://community.centminmod.com/threads/update-inc-wpsetup-inc-add-new-mywpcmds-routine.6080/

    An example to remove native-lazyload WP plugin from your centmin.sh menu option 22 wordpress installation for Wordpress domain = domain.com, create file at /etc/centminmod/customwp_domain.com.inc and create a base function called mywpcmds. List of commands at Built-in Commands | WP-CLI
    Code (Text):
    mywpcmds() {
      wp plugin deactivate native-lazyload --allow-root
      wp plugin uninstall native-lazyload --allow-root 
    }
    

    Then run centmin.sh menu option 22 to install wordpress on domain.com and automatically, the inc/wpsetup.inc routines will pick up the file at /etc/centminmod/customwp_domain.com.inc and source it into the install routine and run mywpcmds function and whatever commands are located in the function. They will be run relative to your wordpress web root directory which would be for domain.com at /home/nginx/domains/domain.com/public

    You can customise quite a bit using such mywpcmds() {} function for each domain so if you had domain.com, domain1.com and domain2.com, you'd have pre-created mywpcmds() {} files for:
    • /etc/centminmod/customwp_domain.com.inc
    • /etc/centminmod/customwp_domain1.com.inc
    • /etc/centminmod/customwp_domain2.com.inc
     
  3. eva2000

    eva2000 Administrator Staff Member

    49,737
    11,437
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,772
    Local Time:
    7:49 PM
    Nginx 1.21.x
    MariaDB 10.x
    Probably should be such an option but I'm always focussed on better than defaults :D