Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch prep GCC 9 devtoolset-9 support for php in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 20, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    44,172
    10,067
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,560
    Local Time:
    8:47 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    prep GCC 9 devtoolset-9 support for php in 123.09beta01

    For centos 7 php-fpm builds start prep work for devtoolset-9 supported GCC 9.1.1 built php binaries via variable DEVTOOLSETNINE='y' set in persistent config file /etc/centminmod/custom_config.inc.

    Code (Text):
    php-config
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -largon2 -lresolv -lcrypt -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -ltinfo -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -lcrypt -largon2 -lxml2 -lxml2 -lxml2 -lxml2 -lxslt -lm -lxml2 -lexslt -lxslt -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20190902]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl PKG_CONFIG_PATH=/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [7.4.3]
      --vernum            [70403]


    Continue reading...

    123.09beta01 branch
     
    • Like Like x 1
    • Winner Winner x 1
  2. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    6:47 AM
    Mainline
    10.2
    Code (Text):
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -largon2 -lresolv -lcrypt -lncurses -laspell -lpspell -lrt -lldap -llber -lcrypt -lpam -lgmp -lbz2 -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lonig -lsqlite3 -ledit -ltinfo -lxml2 -lxml2 -lsodium -lcrypt -largon2 -lxml2 -lxml2 -lxml2 -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20190902]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --with-mcrypt --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-ldap --with-ldap-sasl --with-password-argon2=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi PKG_CONFIG_PATH=/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig:/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [7.4.3]
      --vernum            [70403]
    


    Thanks a lot Eva!
     
  3. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    6:47 AM
    Mainline
    10.2
    Your config:
    vs what I got:
    Duplicate or intended?
     
  4. eva2000

    eva2000 Administrator Staff Member

    44,172
    10,067
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,560
    Local Time:
    8:47 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    contents of persistent config file /etc/centminmod/custom_config.inc ? shouldn't matter if it's duplicate though
     
    • Like Like x 1
  5. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    6:47 AM
    Mainline
    10.2
    Code:
    EMAIL='xxx@gmail.com'
    MM_LICENSE_KEY='xxx'
    ENABLEMOTD='n'
    
    CUSTOMSERVERNAME='y'
    CUSTOMSERVERSTRING='nginx'
    
    AUTO_GITUPDATE='y'
    DISABLE_IPVSIX='y'
    MARCH_TARGETNATIVE_ALWAYS='y'
    
    DEVTOOLSETNINE='y'
    GENERAL_DEVTOOLSETGCC='y'
    CRYPTO_DEVTOOLSETGCC='y'
    
    NSD_DISABLED='y'
    MEMCACHED_DISABLED='y'
    PUREFTPD_DISABLED='y'
    
    NGINX_UPDATEMAINTENANCE='n'
    PHP_UPDATEMAINTENANCE='n'
    MARIADB_UPDATEMAINTENANCE='n'
    
    MARIADB_INSTALLTENTHREE='y'
    
    AUTOTUNE_CLIENTMAXBODY='n'
    NSD_INSTALL='n'              # Install NSD (DNS Server)
    NGXMODULE_ALTORDER='n'       # nginx configure module ordering alternative order
    NGINX_DEBUG='n'              # Enable & reinstall Nginx debug log nginx.org/en/docs/debugging_log.html & wiki.nginx.org/Debugging
    NGINX_MODSECURITY=n          # modsecurity module support https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#Installation_for_NGINX
    NGINX_REALIP='y'
    NGINX_RDNS='n'               # https://github.com/flant/nginx-http-rdns
    NGINX_NJS='n'                # nginScript https://www.nginx.com/blog/launching-nginscript-and-looking-ahead/
    NGINX_GEOIP='n'              # Nginx GEOIP module install
    NGINX_STUBSTATUS='n'         # http://nginx.org/en/docs/http/ngx_http_stub_status_module.html required for nginx statistics
    NGINX_SUB='n'                # http://nginx.org/en/docs/http/ngx_http_sub_module.html
    NGINX_ADDITION='n'           # http://nginx.org/en/docs/http/ngx_http_addition_module.html
    NGINX_IMAGEFILTER='n'        # http://nginx.org/en/docs/http/ngx_http_image_filter_module.html
    NGINX_PERL='n'               # http://nginx.org/en/docs/http/ngx_http_perl_module.html
    NGINX_XSLT='n'               # http://nginx.org/en/docs/http/ngx_http_xslt_module.html
    NGINX_CACHEPURGE='n'         # https://github.com/FRiCKLE/ngx_cache_purge/
    NGINX_ACCESSKEY='n'          #
    NGINX_HTTPCONCAT='n'         # https://github.com/alibaba/nginx-http-concat
    NGINX_THREADS='n'            # https://www.nginx.com/blog/thread-pools-boost-performance-9x/
    NGINX_STREAM='n'             # http://nginx.org/en/docs/stream/ngx_stream_core_module.html
    NGINX_STREAMGEOIP='n'        # nginx 1.11.3+ option http://hg.nginx.org/nginx/rev/558db057adaa
    NGINX_STREAMREALIP='n'       # nginx 1.11.4+ option http://hg.nginx.org/nginx/rev/9cac11efb205
    NGINX_STREAMSSLPREREAD='n'   # nginx 1.11.5+ option https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html
    NGINX_RTMP='n'               # Nginx RTMP Module support https://github.com/arut/nginx-rtmp-module
    NGINX_FLV='n'                # http://nginx.org/en/docs/http/ngx_http_flv_module.html
    NGINX_MP4='n'                # Nginx MP4 Module http://nginx.org/en/docs/http/ngx_http_mp4_module.html
    NGINX_AUTHREQ='n'            # http://nginx.org/en/docs/http/ngx_http_auth_request_module.html
    NGINX_SECURELINK='n'         # http://nginx.org/en/docs/http/ngx_http_secure_link_module.html
    NGINX_FANCYINDEX='n'         # http://wiki.nginx.org/NgxFancyIndex
    NGINX_VHOSTSTATS='n'         # https://github.com/vozlt/nginx-module-vts
    NGINX_PAGESPEED='n'          # Install ngx_pagespeed
    NGINX_PAGESPEEDGITMASTER='n' # Install ngx_pagespeed from official github master instead 
    NGINX_PASSENGER='n'          # Install Phusion Passenger requires installing addons/passenger.sh before hand
    NGINX_WEBDAV='n'             # Nginx WebDAV and nginx-dav-ext-module
    NGINX_HTTPREDIS='n'          # Nginx redis http://wiki.nginx.org/HttpRedisModule
    ORESTY_HEADERSMORE='n'       # openresty headers more https://github.com/openresty/headers-more-nginx-module
    NGINX_STICKY='n'             # nginx sticky module https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng
    NGINX_UPSTREAMCHECK='n'      # nginx upstream check https://github.com/yaoweibin/nginx_upstream_check_module
    NGINX_OPENRESTY='n'          # Agentzh's openresty Nginx modules
    ORESTY_SETMISCGIT='n'        # use git master instead of version specific
    ORESTY_ECHOGIT='n'           # use git master instead of version specific
    
    LUAJIT_GITINSTALL='n'        # opt to install luajit 2.1 from dev branch http://repo.or.cz/w/luajit-2.0.git/shortlog/refs/heads/v2.1
    
    ORESTY_LUANGINX='n'             # enable or disable or ORESTY_LUA* nginx modules below
    NGX_LUAUPSTREAM='n'                # disable https://github.com/openresty/lua-upstream-nginx-module
    NGX_LUAUPSTREAMCACHE='n'           # disable https://github.com/cloudflare/lua-upstream-cache-nginx-module
    
    AUTODETECPHP_OVERRIDE='y'
    PHPGEOIP_ALWAYS='n'          # GeoIP php extension is always reinstalled on php recompiles
    PHPDEBUGMODE='n'             # --enable-debug PHP compile flag
    PHPFINFO='n'                 # Disable or Enable PHP File Info extension
    PHPPCNTL='n'                 # Disable or Enable PHP Process Control extension
    PHPINTL='n'                  # Disable or Enable PHP intl extension
    PHPRECODE=n                  # Disable or Enable PHP Recode extension
    PHPSNMP='n'                  # Disable or Enable PHP SNMP extension
    PHPIMAGICK='n'               # Disable or Enable PHP ImagicK extension
    PHPMAILPARSE='n'             # Disable or Enable PHP mailparse extension
    PHPIONCUBE='n'               # Disable or Enable Ioncube Loader via addons/ioncube.sh
    POSTGRESQL='n'               # set to =y to install PostgreSQL 9.4 server, devel packages and pdo-pgsql PHP extension
    
    LETSENCRYPT_DETECT='y'
    KEYLENGTH='ec-256'
    
    NGINX_VHOSTSSL='y'           # enable centmin.sh menu 2 prompt to create self signed SSL vhost 2nd vhost conf
    NGINXBACKUP='n'
    NGINX_DYNAMICTLS='y'
    NGINX_HPACK='y'
    
    MEMCACHED_INSTALL='n'         # Install Memcached
    PHPREDIS='y'                # redis PHP extension install
    PHPMONGODB='n'              # MongoDB PHP extension install
    PHP_MCRYPTPECL='n'
    PHP_FTPEXT='n'              # ftp PHP extension
    PHP_MEMCACHE='n'            # memcache PHP extension
    PHP_MEMCACHED='n'           # memcached PHP extension
    PHPZOPFLI='n'
    PHPZOPFLI_ALWAYS='n'
    
    PHP_OVERWRITECONF='n'
    PHP_VERSION='7.4.3'        # Use this version of PHP
    ZOPCACHEDFT='y'
    PHP_EXTRAOPTS=""
    GCC_FALIGN_FUNCTION='y'
    
    MARCH_TARGETNATIVE='y'
    MARCH_TARGETNATIVE_ALWAYS='y'
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    44,172
    10,067
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,560
    Local Time:
    8:47 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    all looks ok but unrelated is that you should leave NGXMODULE_ALTORDER='y' default as I haven't tested NGXMODULE_ALTORDER='n' in literally years.

    also you should clean up duplicate variables you have in your persistent config file too
     
    • Informative Informative x 1
  7. rdan

    rdan Well-Known Member

    4,924
    1,174
    113
    May 25, 2014
    Ratings:
    +1,773
    Local Time:
    6:47 AM
    Mainline
    10.2
    Oh, only MARCH_TARGETNATIVE_ALWAYS='y' :D
    Thanks!
     
    • Like Like x 1