Get the most out of your Centmin Mod LEMP stack
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

    59
    2
    8
    Dec 2, 2016
    Ratings:
    +11
    Local Time:
    10:54 AM
    1.9.10
    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

    37,710
    8,254
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,710
    Local Time:
    7:54 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
    • Like Like x 1
..