Join the community today
Register Now

PHP PHP 7.3.3 Released

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Mar 7, 2019.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Continue reading...
     
    • Like Like x 2
  2. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
     
  3. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    Code (Text):
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    /svr-setup/php-7.3.2/ext/date/php_date.c: In function ‘date_object_get_properties_interval’:
    /svr-setup/php-7.3.2/ext/date/php_date.c:2491:2: internal compiler error: Illegal instruction
      ZVAL_DOUBLE(&zv, (double)intervalobj->diff->us / 1000000.0);
      ^~~~~~~~~~~
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    /bin/sh /svr-setup/php-7.3.2/fpm-build/libtool --silent --preserve-dup-deps --mode=compile ccache /opt/rh/devtoolset-8/root/usr/bin/gcc -Iext/date/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DHAVE_TIMELIB_CONFIG_H=1 -Iext/date/ -I/svr-setup/php-7.3.2/ext/date/ -DPHP_ATOM_INC -I/svr-setup/php-7.3.2/fpm-build/include -I/svr-setup/php-7.3.2/fpm-build/main -I/svr-setup/php-7.3.2 -I/svr-setup/php-7.3.2/fpm-build/ext/date/lib -I/svr-setup/php-7.3.2/ext/date/lib -I/usr/include/libxml2 -I/usr/include/enchant -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/local/include -I/usr/include/imap -I/svr-setup/php-7.3.2/ext/mbstring/oniguruma -I/svr-setup/php-7.3.2/fpm-build/ext/mbstring/oniguruma -I/svr-setup/php-7.3.2/ext/mbstring/libmbfl -I/svr-setup/php-7.3.2/fpm-build/ext/mbstring/libmbfl -I/svr-setup/php-7.3.2/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-7.3.2/fpm-build/ext/mbstring/libmbfl/mbfl -I/svr-setup/php-7.3.2/ext/sqlite3/libsqlite -I/usr/include/pspell -I/svr-setup/php-7.3.2/fpm-build/TSRM -I/svr-setup/php-7.3.2/fpm-build/Zend -I/svr-setup/php-7.3.2/main -I/svr-setup/php-7.3.2/Zend -I/svr-setup/php-7.3.2/TSRM -I/svr-setup/php-7.3.2/fpm-build/    -I/usr/include -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -fvisibility=hidden -DZEND_SIGNALS -fprofile-use  -c /svr-setup/php-7.3.2/ext/date/lib/parse_tz.c -o ext/date/lib/parse_tz.lo
    Preprocessed source stored into /tmp/cc342wps.out file, please attach this to your bugreport.
    make[1]: *** [ext/date/lib/astro.lo] Error 1
    make[1]: *** Waiting for unfinished jobs....
    Preprocessed source stored into /tmp/cch0hYXA.out file, please attach this to your bugreport.
    make[1]: *** [ext/date/php_date.lo] Error 1
    make[1]: Leaving directory `/svr-setup/php-7.3.2/fpm-build'
    make: *** [prof-use] Error 2
    
    real    0m24.573s
    user    0m26.824s
    sys     0m1.200s
    
    Fri Mar  8 21:49:54 CET 2019
    Error: 2, PHP make failed (123.09beta01.b109)
    
                  total        used        free      shared  buff/cache   available
    Mem:           7821        3477        1432          33        2911        3888
    Swap:          1023           0        1023
    
    report errors on the forums at community.centminmod.com/forums/8/
    
                  total        used        free      shared  buff/cache   available
    Mem:           7821        3477        1431          33        2911        3887
    Swap:          1023           0        1023
    
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/vda1      xfs       160G   81G   80G  51% /
    devtmpfs       devtmpfs  3.9G     0  3.9G   0% /dev
    tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
    tmpfs          tmpfs     3.9G   17M  3.9G   1% /run
    tmpfs          tmpfs     3.9G     0  3.9G   0% /sys/fs/cgroup
    tmpfs          tmpfs     783M     0  783M   0% /run/user/0
    
    CPU: Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz (4)
    
    version increment history
    123.09beta01.b108 #Fri Mar  8 01:18:34 CET 2019
    123.09beta01.b109 #Fri Mar  8 01:18:47 CET 2019
    123.09beta01.b109 #Fri Mar  8 21:45:00 CET 2019
    123.09beta01.b109 #Fri Mar  8 21:45:16 CET 2019
    123.09beta01.b109 #Fri Mar  8 21:47:08 CET 2019
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/php-7.3.2/fpm-build
    
    17d671b George Liu Fri, 8 Mar 2019 22:57:26 +1000
    move disk_cleanups function to end of routine in 123.09beta01
    
    1       0       centmin.sh
    0       1       inc/centminfinish.inc
     2 files changed, 1 insertion(+), 1 deletion(-)
    /svr-setup/php-7.3.2/fpm-build
    Total PHP Upgrade Time: 159.046876601 seconds


    Something not good. Above is trying to downgrade from 7.3.3 to 7.3.2
    I updated php to 7.3.3 yesterday and from then I got errors on my xenforo forums on giving reaction.
    Error in console:
    Code (Text):
    POST https://www.pijanitvor.com/posts/478485/react?reaction_id=1 502
    (anonymous) @ VM24:1
    send @ jquery.min.js:2
    ajax @ jquery.min.js:2
    ajax @ core-compiled.js?_v=39511711:41
    actionClick @ core-compiled.js?_v=39511711:197
    (anonymous) @ core-compiled.js?_v=39511711:72
    dispatch @ jquery.min.js:2
    y.handle @ jquery.min.js:2
    core-compiled.js?_v=39511711:43 PHP: <html>
    <head><title>502 Bad Gateway</title></head>
    <body>
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    <!-- a padding to disable MSIE and Chrome friendly error page -->
    
    defaultAjaxError @ core-compiled.js?_v=39511711:43
    p @ core-compiled.js?_v=39511711:40
    u @ jquery.min.js:2
    fireWith @ jquery.min.js:2
    k @ jquery.min.js:2
    (anonymous) @ jquery.min.js:2
    load (async)
    send @ jquery.min.js:2
    ajax @ jquery.min.js:2
    ajax @ core-compiled.js?_v=39511711:41
    actionClick @ core-compiled.js?_v=39511711:197
    (anonymous) @ core-compiled.js?_v=39511711:72
    dispatch @ jquery.min.js:2
    y.handle @ jquery.min.js:2
     

    Attached Files:

  4. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    Code (Text):
    [[email protected] ~]# tail -10 /var/log/php-fpm/www-error.log
    [08-Mar-2019 21:42:45] WARNING: [pool www] child 26924 exited on signal 4 (SIGILL) after 227.850561 seconds from start
    [08-Mar-2019 21:43:18] WARNING: [pool www] child 26418 exited on signal 4 (SIGILL) after 855.873373 seconds from start
    [08-Mar-2019 21:44:23] WARNING: [pool www] child 27153 exited on signal 4 (SIGILL) after 97.754475 seconds from start
    [08-Mar-2019 21:46:03] WARNING: [pool www] child 27150 exited on signal 4 (SIGILL) after 219.268952 seconds from start
    [08-Mar-2019 21:53:20] WARNING: [pool www] child 26370 exited on signal 4 (SIGILL) after 251.557940 seconds from start
    [08-Mar-2019 21:54:01] WARNING: [pool www] child 28932 exited on signal 4 (SIGILL) after 41.524252 seconds from start
    [08-Mar-2019 21:57:36] WARNING: [pool www] child 29333 exited on signal 4 (SIGILL) after 26.147358 seconds from start
    [08-Mar-2019 21:58:18] WARNING: [pool www] child 29329 exited on signal 4 (SIGILL) after 69.382410 seconds from start
    [08-Mar-2019 22:00:24] WARNING: [pool www] child 29711 exited on signal 4 (SIGILL) after 7.911489 seconds from start
    [08-Mar-2019 22:01:04] WARNING: [pool www] child 29366 exited on signal 4 (SIGILL) after 208.352008 seconds from start
    [[email protected] ~]# tail -10 /var/log/php-fpm/www-php.error.log
    [08-Mar-2019 03:31:04 UTC] PHP Fatal error:  Uncaught XF\Db\Exception: No such file or directory in /home/nginx/domains/pijanitvor.com/public/src/XF/Db/Mysqli/Adapter.php:160
    Stack trace:
    #0 /home/nginx/domains/pijanitvor.com/public/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
    #1 /home/nginx/domains/pijanitvor.com/public/src/XF/Db/AbstractAdapter.php(60): XF\Db\Mysqli\Adapter->getConnection()
    #2 /home/nginx/domains/pijanitvor.com/public/src/XF/Db/Mysqli/Adapter.php(113): XF\Db\AbstractAdapter->connect()
    #3 /home/nginx/domains/pijanitvor.com/public/src/XF/Db/AbstractAdapter.php(467): XF\Db\Mysqli\Adapter->escapeString('options')
    #4 /home/nginx/domains/pijanitvor.com/public/src/XF/Db/AbstractAdapter.php(445): XF\Db\AbstractAdapter->quote('options')
    #5 /home/nginx/domains/pijanitvor.com/public/src/XF/DataRegistry.php(138): XF\Db\AbstractAdapter->quote(Array)
    #6 /home/nginx/domains/pijanitvor.com/public/src/XF/DataRegistry.php(83): XF\DataRegistry->readFromDb(Array, Array)
    #7 /home/nginx/domains/pijanitvor.com/public/src/XF/ in /home/nginx/domains/pijanitvor.com/public/src/XF/Db/Mysqli/Adapter.php on line 160
    
     
  5. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    Logs:

    Unsuccessful downgrade php 7.3.3 to 7.3.2 - [Bash] # cat /root/centminlogs/centminmod_123.09beta01.b109_080319-214703_php_upgrade.l - Pastebin.com

    after above I tried just to recompile 7.3.3 version - [Bash] # cat /root/centminlogs/centminmod_123.09beta01.b109_080319-220432_php_upgrade.l - Pastebin.com


    Running php 7.3.3, nginx 1.5.9 and MariaDB 10.3.13


    Code (Text):
    # cminfo
    ------------------------------------------------------------------
     Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info
    
      ip: xxxxxx
      city:
      region:
      country: DE
    
    Processors physical = 4, cores = 4, virtual = 4, hyperthreading = no
    
          4  3099.996
          4  Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
          4  16384 KB
    
     System Up Since:       2019-03-08 03:30:41
     System Uptime:         up 20 hours, 35 minutes
     MySQL Server Started   2019-03-08 04:31:04
     MySQL Uptime:          19 hours 35 min 17 sec
     MySQL Uptime (secs):   70517
     Server Type:           kvm
     CentOS Version:        7.6
     Centmin Mod:           123.09beta01.b109
     Nginx PageSpeed:       ON
     Nginx Version:         1.15.9 (070319-112115-centos7-kvm)
     PHP-FPM Version:       7.3.3
     MariaDB Version:       10.3.13
     CSF Firewall:          v12.09
     Memcached Server:      1.5.12
     NSD Version:            -
     Siege Version:         4.0.4
     Maldet Version:        v1.6.3
     ClamAV Version:        not installed
     ElasticSearch:         6.6.1
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     Site Nginx Vhost Accounts:
    ------------------------------------------------------------------
    
    xxxxxxxx
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     Site Nginx Vhost Config Files:
    ------------------------------------------------------------------
    
    * /usr/local/nginx/conf/conf.d/demodomain.com.conf
    * /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf
    * /usr/local/nginx/conf/conf.d/pijanitvor.com.conf-disabled
    * /usr/local/nginx/conf/conf.d/pijanitvor.com.ssl.conf
    * /usr/local/nginx/conf/conf.d/virtual.conf
    
    ------------------------------------------------------------------
     System User Ids >81:
    ------------------------------------------------------------------
    
    nobody:x:99:99:Nobody:/:/sbin/nologin
    dbus:x:81:81:System message bus:/:/sbin/nologin
    polkitd:x:999:998:User for polkitd:/:/sbin/nologin
    avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
    postfix:x:89:89::/var/spool/postfix:/sbin/nologin
    systemd-bus-proxy:x:998:996:systemd Bus Proxy:/:/sbin/nologin
    systemd-network:x:997:995:systemd Network Management:/:/sbin/nologin
    saslauth:x:996:76:Saslauthd user:/run/saslauthd:/sbin/nologin
    nginx:x:1000:1000::/home/nginx:/sbin/nologin
    mysql:x:995:994:MySQL server:/var/lib/mysql:/sbin/nologin
    redis:x:994:992:Redis Server:/var/lib/redis:/sbin/nologin
    clamav:x:992:990:Clam Anti Virus Checker:/var/clamav:/sbin/nologin
    phpmyadmin:x:1001:1001::/home/phpmyadmin/:/sbin/nologin
    nixstats:x:991:989::/opt/nixstats:/bin/false
    dd-agent:x:989:987:Datadog Agent:/opt/datadog-agent:/bin/sh
    memcached:x:1002:1002::/home/memcached:/sbin/nologin
    elasticsearch:x:988:986:elasticsearch user:/home/elasticsearch:/sbin/nologin
    clamupdate:x:987:985:Clamav database update user:/var/lib/clamav:/sbin/nologin
    
    ------------------------------------------------------------------
     Pure-FTP Virtual FTP Info:
    ------------------------------------------------------------------
    
    xxxxxx         
    
    -------------------------------------
    Virtual FTP user: xxxx
    password displayed is encrypted
    
    Login              : xxxx
    Password           : xxxxx
    UID                : 1000 (nginx)
    GID                : 1000 (nginx)
    Directory          : /home/nginx/domains/pijanitvor.com/./
    Full name          :
    Download bandwidth : 0 Kb (unlimited)
    Upload   bandwidth : 0 Kb (unlimited)
    Max files          : 0 (unlimited)
    Max size           : 0 Mb (unlimited)
    Ratio              : 0:0 (unlimited:unlimited)
    Allowed local  IPs :
    Denied  local  IPs :
    Allowed client IPs :
    Denied  client IPs :
    Time restrictions  : 0000-0000 (unlimited)
    Max sim sessions   : 0 (unlimited)
    
    
    
    ------------------------------------------------------------------
     Nginx Configuration:
    ------------------------------------------------------------------
    
    nginx version: nginx/1.15.9 (070319-112115-centos7-kvm)
    built by gcc 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)
    built with OpenSSL 1.1.1b  26 Feb 2019
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib' --with-cc-opt='-I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=x86-64 -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -gsplit-dwarf' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=070319-112115-centos7-kvm --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --add-dynamic-module=../ngx_brotli --add-dynamic-module=../ngx_http_geoip2_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.5 --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.32 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.1b --with-openssl-opt='enable-ec_nistp_64_gcc_128 enable-tls1_3'
    
    ------------------------------------------------------------------
     Nginx Settings:
    ------------------------------------------------------------------
    
    user              nginx nginx;
    worker_processes 2;
    worker_priority -10;
    worker_rlimit_nofile 260000;
    timer_resolution 100ms;
    pcre_jit on;
    include /usr/local/nginx/conf/dynamic-modules.conf;
     map_hash_bucket_size 512;
     map_hash_max_size 4096;
     server_names_hash_bucket_size 128;
     server_names_hash_max_size 2048;
     variables_hash_max_size 2048;
    limit_req_zone $binary_remote_addr zone=xwplogin:16m rate=40r/m;
    #include /usr/local/nginx/conf/cloudflare.conf;
    include /usr/local/nginx/conf/maintenance.conf;
    #include /usr/local/nginx/conf/vts_http.conf;
    include /usr/local/nginx/conf/geoip.conf;
    #include /usr/local/nginx/conf/pagespeedadmin.conf;
    include /usr/local/nginx/conf/fastcgi_param_https_map.conf;
    include /usr/local/nginx/conf/default_phpupstream.conf;
            sendfile on;
            sendfile_max_chunk 512k;
            tcp_nopush  on;
            tcp_nodelay on;
            server_tokens off;
            keepalive_timeout  5;
            keepalive_requests 1000;
            lingering_time 20s;
            lingering_timeout 5s;
            keepalive_disable msie6;
            gzip on;
            gzip_vary   on;
            gzip_disable msie6;
            gzip_static on;
            gzip_min_length   1400;
            gzip_buffers      1024 8k;
            gzip_http_version 1.0;
            gzip_comp_level 5;
            gzip_proxied    any;
            gzip_types text/plain text/css text/xml application/javascript application/x-javascript application/xml application/xml+rss application/ecmascript application/json image/svg+xml;
     client_body_buffer_size 256k;
     client_body_in_file_only off;
     client_body_timeout 10s;
     client_header_buffer_size 64k;
     client_header_timeout  8s;
     client_max_body_size 120m;
     connection_pool_size  512;
     directio  4m;
     directio_alignment 4096;
     large_client_header_buffers 8 64k;
     types_hash_max_size 2048;
    open_file_cache max=50000 inactive=60s;
    open_file_cache_valid 120s;
    open_file_cache_min_uses 2;
    open_file_cache_errors off;
    open_log_file_cache max=10000 inactive=30s min_uses=2;
    
    ------------------------------------------------------------------
     PHP-FPM Configuration:
    ------------------------------------------------------------------
    
    Configure Command =>  '../configure'  '--enable-fpm' '--enable-opcache' '--enable-intl' '--enable-pcntl' '--with-mcrypt' '--with-snmp' '--enable-embed=shared' '--with-mhash' '--with-zlib' '--with-gettext' '--enable-exif' '--enable-zip' '--with-libzip' '--with-bz2' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-pear' '--enable-mbstring' '--with-openssl' '--with-mysql=mysqlnd' '--with-libdir=lib64' '--with-mysqli=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-curl' '--with-gd' '--with-xmlrpc' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--with-freetype-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-webp-dir=/usr' '--with-t1lib=/usr' '--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' '--with-sodium' '--with-config-file-scan-dir=/etc/centminmod/php.d' '--with-fpm-systemd' '--with-xsl'
    
    ------------------------------------------------------------------
     PHP-FPM Settings /usr/local/etc/php-fpm.conf:
    ------------------------------------------------------------------
    
    log_level = warning
    pid = /var/run/php-fpm/php-fpm.pid
    error_log = /var/log/php-fpm/www-error.log
    user = nginx
    group = nginx
    listen = 127.0.0.1:9000
    listen.allowed_clients = 127.0.0.1
    listen.owner = nginx
    listen.group = nginx
    listen.mode = 0666
    pm = dynamic
    pm.max_children = 16
    pm.start_servers = 4
    pm.min_spare_servers = 2
    pm.max_spare_servers = 8
    pm.max_requests = 200
    pm.process_idle_timeout = 10s;
    rlimit_files = 65536
    rlimit_core = 0
    slowlog = /var/log/php-fpm/www-slow.log
    pm.status_path = /phpstatus
    ping.path = /phpping
    ping.response = pong
    php_admin_value[error_log] = /var/log/php-fpm/www-php.error.log
    php_admin_value[disable_functions] = shell_exec
    php_admin_value[memory_limit] = 1024M
    
    ------------------------------------------------------------------
     PHP-FPM Extensions Loaded:
    ------------------------------------------------------------------
    
    [PHP Modules]
    bcmath
    brotli
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    lz4
    lzf
    mailparse
    mbstring
    mcrypt
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    zstd
    
    [Zend Modules]
    Zend OPcache


    Code (Text):
    # 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='y' # 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
    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
    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
     
  6. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    After restarting nginx/mariadb/php-fpm and rebooting server, all is OK now.

    I think that something ussually went wrong when I shutdown server and than starting it.
    Every third time something not started or something is too sleepy to wake up and do what it is expect to do in server life.
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you're missing some Xenforo files.. did you upload all your files. Double check

    could be issue with GCC 8 compiled PHP 7.3.3 with PHP_PGO='y' enabled
    Code (Text):
    /svr-setup/php-7.3.3/ext/date/lib/astro.c:76:2: internal compiler error: Illegal instruction
      return (x - 360.0 * floor(x * INV360));
      ^~~~~~
    Please submit a full bug report,

    try recompile PHP 7.3.3 without PHP_PGO='y' and see

    also could be due to what cpu flags/instructions your web host passings from host node to guest kvm guest OSes - some web hosts don't pass all the required instructions to guest kvm guest OSes which the GCC compiler is expecting
    how are you restarting/shutting down server ? you don't need to shutdown server most of the time a restart is fine. Could be something with upcloud's method ?
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    think i found Sunka's problem - doing private testing right now
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @Sunka problem is due to GCC 8 compiler combined with centmin.sh check and auto setting MARCH_TARGETNATIVE='n' when upcloud, linode, digitalocean and vultr servers are detected. For now, temp work around is disabling centmin.sh auto check mentioned below by setting in persistent config file /etc/centminmod/custom_config.inc the following variable
    Code (Text):
    MARCH_TARGETNATIVE_ALWAYS='y'

    and removing variable
    Code (Text):
    MARCH_TARGETNATIVE='n'

    then recompile nginx and php-fpm - you would have to recompile nginx and php-fpm if in future your switch upcloud host nodes or backup/restore to a different upcloud server which has a different cpu reported in lscpu command output (see below explanation).

    As these providers have different cpu models in their mix so you could snapshot backup/restore or migrate to a different vps host node with different cpu models, so MARCH_TARGETNATIVE='y' (normal defaults if other web hosts detected) isn't viable option unless end user knows to always recompile nginx and php-fpm after migrating to a vps host node with a different cpu model - so if you switch or migrate to a different upcloud, linode or digitalocean server with different cpu reported by lscpu command with MARCH_TARGETNATIVE='y' set, you would need to recompile nginx and php-fpm.

    As most folks aren't aware of this requirement, i set it so when upcloud, linode, digitalocean or vult are detected, automatically switch from MARCH_TARGETNATIVE='y' to MARCH_TARGETNATIVE='n' but this changes the GCC compiler march target from native to x86-64 which disables some cpu flag/instructions depending on cpu and GCC version.

    Problem is PHP 7.3 is first PHP major version to add support for cpu AVX2 instructions if the cpu is detected to support AVX2 which would be enabled if MARCH_TARGETNATIVE='y' was set, but are usually disabled when MARCH_TARGETNATIVE='n' set and march target set to x86-64. Thus PHP 7.3 would fail to compile with native GCC 4.8.5 as proper cpu flags aren't detected on newer cpus like Intel Skylake and also fail with GCC 7/8 compilers and when when upcloud, linode, digitalocean and vultr servers are detected. But it's also dependent on how your web host passes cpu support flags/instructions from VPS host node to guest VPS OSes. Hence, why it's possible to have no issues with one web host and issues on another web host even if they use same cpu due to what cpu flags/instructions the guest VPS OS thinks the cpu supports due to how web host configured it. With your server shutdown/restarts wonder if the supported cpu flags get changed ? you can do lscpu command before and after server shutdown/restarts to compare the output too.

    If you can for your server and cpu run this command to run a script I wrote to test GCC 4.8.5, 7.3.1, 8.2.1 compiler's native, x86-64 and generic targets and compare them side by side. Post output in CODE/CODEB tags or to gist.github.com or pastebin.com
    Code (Text):
    lscpu
    curl -sL https://gist.githubusercontent.com/centminmod/0744fa72c43757766ce83d0f4cfbccbf/raw/gcc-targets.sh | bash


    FYI, i found my old bug report for similar issues on PHP 7.3 on upcloud E5-2687w v4 Broadwell cpu and SSDnode Xeon Gold Skylake cpus only PHP :: Bug #76429 :: zend_accelerator_util_funcs.c error: unknown register name ‘%ymm0’ in ‘asm.

    also might have found a related issue with GCC 8 that i ran into with nginx but haven't dealt with in php-fpm as omly just recently added GCC 8 compiler support to php-fpm routines
     
    Last edited: Mar 9, 2019
    • Informative Informative x 1
    • Friendly Friendly x 1
  10. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    After rebooting server, recompile with PHP_PGO='y' went OK, like usually

    Rebooting and shutdown server through upcload panel.
    Before I take snapshot of my server I always shutdown server, because taking snapshot on live server could be not valid. Am I wrong?

    Here it is:
    [Bash] [[email protected] ~]# lscpu Architecture: x86_64 CPU op-mode(s): 3 - Pastebin.com

    OK, I will do that and recompile nginx and php
    Please notice me when I should remove/change those variables again.
     
  11. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    try shutting down from within your server via SSH instead
    Code (Text):
    mysqladmin flush-tables && sleep 60
    shutdown -h now
    

    flush mysql data to disk and wait 60 seconds before shutting down.
     
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 1
  13. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    OK, I will try shutting down server via ssh in future, take snapshot and starting it through upcload panel at the end
    I did all that you wrote before. php and nginx recompiled OK.
     
  14. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    @Sunka I just updated 123.09beta01 with some fixes for this so run = cmupdate command to update 123.09beta01 and try removing MARCH_TARGETNATIVE_ALWAYS='y' from persistent config file and doing PHP 7.3.3 recompile on your upcloud server and see if it compiles properly :)
     
    • Like Like x 1
  15. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    Should I enable MARCH_TARGETNATIVE='n' before recompiling nginx and php?
     
  16. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,100
    Local Time:
    9:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    no leave that off.. centmin.sh will auto add it back when upcloud, linode, digitalocean and vultr servers are detected
     
  17. Sunka

    Sunka Well-Known Member

    1,103
    299
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +481
    Local Time:
    1:01 AM
    Nginx 1.15.8
    MariaDB 10.3.12
    OK
    This is my persistent config file now.
    I will recompile now nginx and php

    Code (Text):
    # 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='y' # 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
    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='y' #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