Want more timely Centmin Mod News Updates?
Become a Member

[Solved] Option 22 - PHP Fatal error: Allowed memory size of 167772160 bytes exhausted

Discussion in 'Bug Reports' started by Kintaro, Nov 14, 2018.

  1. Kintaro

    Kintaro Member

    106
    11
    18
    Dec 2, 2016
    Italy
    Ratings:
    +30
    Local Time:
    9:29 AM
    1.15.x
    MariaDB 10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.15.6
    • PHP Version Installed: 7.1.22
    • MariaDB MySQL Version Installed: 10.1.xx
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      CLANG='n'
      DEVTOOLSETSEVEN='y'
      NGINX_DEVTOOLSETGCC='y'
      NGINX_HPACK='y'
      CLOUDFLARE_ZLIB='y'
      MARCH_TARGETNATIVE='n'
      LIBRESSL_SWITCH='n'
      LETSENCRYPT_DETECT='y'
      
    • Server: I'm on a 1GB Linode
    I tried for the first time option 22 (wp+cache) and I got this:

    Code (Text):
    ------------------------------------------------------------
    
    Update wp-cli tool
    
    ------------------------------------------------------------
    
    updating...
    
    -------------------------------------------------------------
    
    update wp-cli packages
    
    Using Composer to update packages...
    
    ---
    
    Loading composer repositories with package information
    
    Updating dependencies
    
    PHP Fatal error:  Allowed memory size of 167772160 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/bin/wp/vendor/composer/composer/src/Composer/DependencyResolver/Solver.php on line 220
    
    -------------------------------------------------------------


    Code (Text):
    # free -mh
    
                  total        used        free      shared  buff/cache   available
    
    Mem:           991M        249M        341M         97M        400M        402M
    
    Swap:          1,2G         47M        1,2G
    


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,278
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    5:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    from Centmin Mod LEMP Stack Install Nginx on CentOS
    you can really just ignore that for composer stuff as centmin.sh menu option 22 tries to install some extra tools for wordpress - wp-checksum and wp-sec but they are not essential to wordpress usage for your site.

    example of wp-sec
    Code (Text):
    cd /home/nginx/domains/domain.com/public
    wp wp-sec check
    
    -----------------------------------------------
    Checking core vulnerabilities for version 4.9.8
    -----------------------------------------------
    
    No known core vulnerabilities found in version 4.9.8
    
    
    -------------------------------
    Checking plugin vulnerabilities
    -------------------------------
    
    Vulnerabilities:
    No known plugin vulnerabilities found
    
    ------------------------------
    Checking theme vulnerabilities
    ------------------------------
    
    Vulnerabilities:
    No known theme vulnerabilities found
    -----------------------------------------------
    
    Success: No vulnerabilities found
    


    i should really add a memory installed check and limit to only attempt to install those via composer if system has enough memory

    edit: just updated 123.09beta01 with the proposed memory checks at Beta Branch - revise memory_limit routines in 123.09beta01 :)
     
    Last edited: Nov 14, 2018