Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress centmin.sh menu option 22 autoptimize fails to install

Discussion in 'Blogs & CMS usage' started by minodd, Nov 12, 2019.

  1. minodd

    minodd New Member

    13
    1
    3
    Nov 29, 2018
    Ratings:
    +2
    Local Time:
    4:29 AM
    Nginx 1.15.6
    MariaDB 10
    I've got a problem here. Every time when I use option 22 to create a wordpress site, I chose to add Autoptimize, but it would never be installed. So I have to install this plugin manually each time. I've tried in different VPSes, with fresh Centminmod install, all needed options added in custom_config, still no luck. It's not a big deal though. After all I could do it manually.
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,262
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    6:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    To troubleshoot centmin.sh menu option 22 wordpress installation, you need to check the centmin.sh menu option 22 log located in /root/centminlogs at /root/centminlogs/centminmod_*_wordpress_addvhost.log based log where * is the centminmod version and date timestamp. Edit and mask any actual ftp username/password or wordpress usernames and logins before posting the log contents to Pastebin.com or Gists to share a sanitised version of the contents of the log.

    Example list /root/centminlogs files in date ascending order and grep for wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    

    example output returns log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents without revealing sensitive info. For example you can replace domain name of the wordpress site with generic dummy entry = domain.com if you want and mask site/server IP revealed in the log with generic dummy entry = 111.222.333.444.
     
  3. minodd

    minodd New Member

    13
    1
    3
    Nov 29, 2018
    Ratings:
    +2
    Local Time:
    4:29 AM
    Nginx 1.15.6
    MariaDB 10
  4. eva2000

    eva2000 Administrator Staff Member

    42,262
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    6:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    indeed autoptimize is not installed from your log despite answering yes to the prompt question
    Code (Text):
    Autoptimize WP Plugin is installed by default. Do you want to install
    companion Autoptimize Gzip Plugin to precompresses js/css optimized files
    details at https://community.centminmod.com/threads/15314/
    Install Autoptimize Gzip Companion Wordpress Plugin ? [y/n]: y
    

    but that is because you selected redis nginx cache instead of cache enabler. Autoptimize wp plugin is only installed for Cache Enabler selected cache method.
    Code (Text):
    Default is to install KeyCDN WP Cache Enabler Plugin
    as it's more stable and reliable than WP Super Cache.
    Redis cache may have issues with caching due to long 6hr cache TTL
    You can select which caching method to use below:
    
    --------------------------------------------------------
                   Wordpress Caching
    --------------------------------------------------------
    1) KeyCDN Cache Enabler
    2) Redis Nginx Level Caching
    3) Wordpress Super Cache
    --------------------------------------------------------
    Enter option [ 1 - 3 ]
    you selected option 2 (Redis Nginx Level Cache) [wpscache=redis]
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    42,262
    9,550
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,708
    Local Time:
    6:29 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    FYI, just updated centmin.sh menu option 22 in Centmin Mod 123.09beta01 so it adds autoptimize plugin when selecting redis nginx level cache option. Just need to run cmupdate to update your code, and future centmin.sh menu option 22 runs should add autoptimize if you select either cache enabler or redis nginx level caching.
     
  6. minodd

    minodd New Member

    13
    1
    3
    Nov 29, 2018
    Ratings:
    +2
    Local Time:
    4:29 AM
    Nginx 1.15.6
    MariaDB 10
    Great! Thank you very much! I'll test that soon!