Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM Can not upgrade to php 7.4.3

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Sunka, Feb 19, 2020.

  1. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    3:43 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    OK, I set that (enabled MARCH_TARGETNATIVE_ALWAYS but set to "n")

    Code:
    # cat /etc/centminmod/custom_config.inc
    NGINX_LIBBROTLI=y # Brotly extension
    NGXDYNAMIC_BROTLI=y # Brotly dynamic module extension
    NGINX_BROTLIDEP_UPDATE='y' # use the latest tagged version of Google Brotli - http://bit.ly/2S9y3tI
    PHP_MEMCACHE=n # memcache PHP extension
    PHP_MEMCACHED=n # memcached PHP extension
    PHP_PGO='n' # PGO Let It Go - Profile Guided Optimizations for PHP 7
    PHPPGO_INDEXPATH='/home/nginx/domains/pijanitvor.com/public/index.php' # path for PGO training
    AUDITD_ENABLE='y' # Auditd skripta
    RCLONE_ENABLE='y' # Rclone skripta
    NGINX_DEVTOOLSETGCC='y' # umjesto clang ide gcc kompilacija kod nginx
    #DEVTOOLSETEIGHT='y' # ide 8.x verzija gcc kompilacije umjesto defaultne 5.x ili 6.x ili 7.x
    DEVTOOLSETNINE='y' # ide 9.x verzija gcc kompilacije umjesto defaultne 5.x - 8.x
    CRYPTO_DEVTOOLSETGCC='y' # newer Intel GCC
    #NGINX_HPACK='y' # enabling HPACK for Nginx
    NGINX_DYNAMICTLS='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINXPATCH='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINX_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    NGXDYNAMIC_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    ENABLE_MARIADBTENTHREEUPGRADE='y' # enabling upgrade MariaDB from 10.2.x to 10.3.x
    MARCH_TARGETNATIVE='n' # potrebno da ne zblesira nginx kod reboota servera - http://bit.ly/2SlX3hd
    MARCH_TARGETNATIVE_ALWAYS='n' #za sada ovo gore disableano a ovo omoguceno - http://bit.ly/2VODBHf
    PHP_ARGON='y' # potrebno za bolji hash algoritam passworda na xenforu
    PHP_BROTLI='y' # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y' # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y' # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y' # zstd php extension https://github.com/kjdev/php-ext-zstd
    #AUTODETECPHP_OVERRIDE='y' # recompile php exensions on minor php (aka 7.3.x) upgrade
    MM_LICENSE_KEY='xxxxxxxx'
    Going to recompile nginx and php.
    Regarding memcached, I do not have to recompile it because I never use it (it from beginning set in custom config to "n")?
    So, from now I recompile php without PHP_PGO?

    Reeboot via cli is: reboot
    Shutdown: mysqladmin flush-tables && sleep 60 than wait for 1 minute and execute shutdown -h now or I can past both commands in one shot in cli?

     
  2. eva2000

    eva2000 Administrator Staff Member

    47,474
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    12:43 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yeah skip memcached in that case
    try without PHP PGO first and then try with PHP PGO

    reboot
    Code (Text):
    mysqladmin flush-tables && sleep 60 && reboot

    or shutdown
    Code (Text):
    mysqladmin flush-tables && sleep 60 && shutdown -h now
     
  3. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    3:43 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    OK.
    nginx and php recompiled. Seems everything fine.
    I will now recompile php again with PHP_PGO enabled.