Want more timely Centmin Mod News Updates?
Become a Member

Compiling PHP 7.2.0 + PGO

Discussion in 'Beta release code' started by Nitin, May 7, 2018.

Tags:
  1. Nitin

    Nitin New Member

    23
    4
    3
    Apr 30, 2018
    Ratings:
    +4
    Local Time:
    4:53 AM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: dont know. Default installed by centmin
    • PHP Version Installed: 7.2.0
    • MariaDB MySQL Version Installed: Default installed by centmin
    • When was last time updated Centmin Mod code base ? : installed yesterday
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:

      cat /etc/centminmod/custom_config.inc


      Code:
      LETSENCRYPT_DETECT='y'
      PHP_PGO='y'
    When i compile it says under the PHP:MAKE it says PHP_PGO = n
    Tried two times. As one of the thread says "PHP 7.2.0 GA centminmod php-fpm + PGO" gives best result. How to install 7.2.0 GA. I put just 7.2.0 in version.
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,901
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    9:23 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    123.09beta01 was recently updated to only enable PHP_PGO if there's more than 2 cpu threads on server due to extended compilation times for PHP which would be slower with only 1 cpu thread.
     
    • Like Like x 1
  3. Nitin

    Nitin New Member

    23
    4
    3
    Apr 30, 2018
    Ratings:
    +4
    Local Time:
    4:53 AM
    ok. But if i run this on 2 cpu thread then how to compile PHP 7.2.0 GA. I have to put 7.2.0 when asked or 7.2.0 GA
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,901
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    9:23 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if server has 2 or more cpu core/threads then setting in /etc/centminmod/custom_config.inc
    Code (Text):
    PHP_PGO='y'

    before (not after) running centmin.sh menu option 5 should compile any PHP 7 version with PGO

    End of php compile should have something like
    Code (Text):
    ***************************************************
    * PHP upgraded and auto reinstalled PHP extensions
    * PHP_PGO='y' detected. PHP compiled with Profile Guided Optimizations
    * https://software.intel.com/en-us/blogs/2015/10/09/pgo-let-it-go-php
    ***************************************************


    If it doesn't, to troubleshoot, you need to check the the php upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    If you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last php upgrade log was named centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    then use cat command to output the contents of that log. Do the same for any other relevant logs. i.e. if you ran centmin.sh menu option 10, you would have memcached_reinstall.log log too

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of 1 specific log, in this case most recent php_upgrade.log logs
     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    36,901
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,436
    Local Time:
    9:23 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Also verify you have more than 2 cpu core/threads with command
    Code (Text):
    grep -c "processor" /proc/cpuinfo
    

    should report number of cpu cores
     
    • Like Like x 1
..