Welcome to Centmin Mod Community
Register Now

Sysadmin Here we go again - after rebooting server errors with nginx and php

Discussion in 'System Administration' started by Sunka, Mar 20, 2019.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Similiar thread is here.
    I rebooted server and after that shutdown, make snapshot and then start server again. All through Upcloud server panel.
    I can not recompile nginx after that. Tried with
    MARCH_TARGETNATIVE='n'
    and after unsuccessful recompiling tried with MARCH_TARGETNATIVE='y' instead above one.
    Both recompiling faild.
    I also tried to swicth to gcc7, but nginx recompile failed too.

    Every time I shutdown/restart server, it happen again.

    I did switch servers provider, but that was two years ago. It all happened month or two ago.
    Could be gcc8, and pgo with php recompiling, I do not know.
    @eva2000 please help

    If gcc8 is mistake, I could switch to clang instead. Or to do something else?

    Nginx recompile log
    [Bash] Do you want to run YUM install checks ? [y/n] This will increase your upgr - Pastebin.com


    Code (Text):
    [root@upcloud ~]# nginx -t
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


    Code (Text):
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    Preprocessed source stored into /tmp/cclhVaTj.out file, please attach this to your bugreport.
    make[3]: *** [apps/speed.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Leaving directory `/svr-setup/openssl-1.1.1b'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/svr-setup/openssl-1.1.1b'
    make[1]: *** [../openssl-1.1.1b/.openssl/include/openssl/ssl.h] Error 2
    make[1]: Leaving directory `/svr-setup/nginx-1.15.9'
    make: *** [build] Error 2
    
    real    0m42.784s
    user    2m10.993s
    sys     0m32.131s
    
    Tue Mar 19 23:41:12 CET 2019
    Error: 2, Nginx make failed
    
    report errors on the forums at community.centminmod.com/forums/8/
    
                  total        used        free      shared  buff/cache   available
    Mem:           7821        3002        1231          31        3586        4360
    Swap:          1023           0        1023
    
    Filesystem     Type      Size  Used Avail Use% Mounted on
    /dev/vda1      xfs       160G   76G   85G  48% /
    devtmpfs       devtmpfs  3.9G     0  3.9G   0% /dev
    tmpfs          tmpfs     3.9G     0  3.9G   0% /dev/shm
    tmpfs          tmpfs     3.9G  8.6M  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.b114 #Tue Mar 19 10:30:40 CET 2019
    123.09beta01.b114 #Tue Mar 19 10:30:52 CET 2019
    123.09beta01.b114 #Tue Mar 19 22:12:37 CET 2019
    123.09beta01.b114 #Tue Mar 19 22:12:51 CET 2019
    123.09beta01.b114 #Tue Mar 19 23:38:22 CET 2019
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/nginx-1.15.9
    
    d3bf0fa George Liu Wed, 20 Mar 2019 07:11:16 +1000 
    part 2 update cminto top stats to include php-fpm stats in 123.09beta01
    
    3       4       tools/cminfo.sh
     1 file changed, 3 insertions(+), 4 deletions(-)
    /svr-setup/nginx-1.15.9
    
    log files saved at /root/centminlogs
    -rw-r--r-- 1 root root  576 Mar 19 23:39 patch_opensslpatches_190319-233812.log
    -rw-r--r-- 1 root root   44 Mar 19 23:39 centminmod_opensslinstalltime_190319-233812.log
    -rw-r--r-- 1 root root  158 Mar 19 23:39 patch_patchnginx_190319-233812.log
    -rw-r--r-- 1 root root 8.2K Mar 19 23:40 nginx-configure-190319-233812.log
    -rw-r--r-- 1 root root 1.2M Mar 19 23:41 centminmod_123.09beta01.b114_190319-233812_nginx_upgrade.log
    Total Nginx Upgrade Time: 166.815681614 seconds
    


    Code (Text):
    [root@upcloud ~]# 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-19 23:35:08
     System Uptime:         up 38 minutes
     MySQL Server Started   NULL
     MySQL Uptime:                 
     MySQL Uptime (secs):   18446744073709550322
     Server Type:           kvm
     CentOS Version:        7.6
     Centmin Mod:           123.09beta01.b114
     Nginx PageSpeed:       ON
     Nginx Version:         1.15.9 (100319-153752-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.2
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     Site Nginx Vhost Accounts:
    ------------------------------------------------------------------
    
    * demodomain.com: /home/nginx/domains/demodomain.com
    ├── backup
    ├── log
    ├── private
    └── public
    * pijanitvor.com: /home/nginx/domains/pijanitvor.com
    ├── backup
    ├── log
    ├── private
    ├── public
    ├── staticffmpeg
    ├── testis
    ├── tools
    └── videoup
    ------------------------------------------------------------------
    
    ------------------------------------------------------------------
     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              : xxxxx
    Password           : $6$kTrFeVH5erBvB7m0$4eyByIkAg4m.pxW6eDmvjZPUDJaYoCM0aPjbl7FSjXK5zs/0Y6rtL8Soc/VFuUBIwew5J8VkAlE18hGvfrYaT/
    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 (100319-153752-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 -mavx -mavx2 -mpclmul -msse4 -msse4.1 -msse4.2 -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' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=100319-153752-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
    
    
    /usr/bin/cminfo {info|update|netstat|top|listlogs|debug-menuexit|versions}
    


    Code (Text):
    service nginx status
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: active (running) since Wed 2019-03-20 00:08:14 CET; 13min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 17577 ExecStop=/etc/rc.d/init.d/nginx stop (code=exited, status=0/SUCCESS)
      Process: 17563 ExecReload=/etc/rc.d/init.d/nginx reload (code=exited, status=0/SUCCESS)
      Process: 4254 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)
     Main PID: 4277 (nginx)
       CGroup: /system.slice/nginx.service
               ├─4277 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
               ├─4278 nginx: worker process
               └─4294 nginx: worker process
    
    Mar 20 00:08:14 upcloud.pijanitvor.com systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) rev......
    Mar 20 00:08:14 upcloud.pijanitvor.com nginx[4254]: Starting nginx: [  OK  ]
    Mar 20 00:08:14 upcloud.pijanitvor.com systemd[1]: Started SYSV: Nginx is an HTTP(S) server, HTTP(S) reve...er.
    Hint: Some lines were ellipsized, use -l to show in full.
    



    Code (Text):
    [root@upcloud ~]# curl -s https://ipinfo.io/org
    AS202053 UpCloud Ltd
    


    Code (Text):
    [root@upcloud ~]# 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 
    



    Running this:
    Code (Text):
    lscpu
    curl -sL https://gist.githubusercontent.com/centminmod/0744fa72c43757766ce83d0f4cfbccbf/raw/gcc-targets.sh | bash
    


    Give me this output:
    [Bash] [root@upcloud ~]# lscpu Architecture: x86_64 CPU op-mode(s): 3 - Pastebin.com
     
  2. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
  3. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:42 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    try setting
    Code (Text):
    CRYPTO_DEVTOOLSETGCC='n'
    

    for nginx recompiles at least
     
  4. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:42 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    if that doesn't work you can always just use the outlined variable at PHP - PHP 7.3.3 Released

    so set 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'


     
  5. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    OK, here is custom config before trying recompile nginx and php

    Code (Text):
    [root@upcloud ~]# 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
     
  7. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
  8. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Strange things.
    After rebooting server, everything seems fine.
    I have recompiled nginx and php successfuly.
    This errors come after I shutdown server, not reboot/restart. Something is making nginx weird after server start after shutdown. Maybe my server do not want to take rest at all, even for a second :ROFLMAO:


    This is my custom config right now:

    Code (Text):
    [root@upcloud ~]# 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



    @eva2000 should I leave like this, or should I change something in my custom config above?
    If gcc8 create that conflict, should I change to gcc 7 than? What do you think?

    Or would it be better to create new server on upcloud and move my forum files there and set new nginx/php/... files installing centmin brand new one?
     
  9. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:42 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    said in other thread do shutdown from within SSH of your server not via upcloud control panel ;)
     
  10. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:42 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    but it could be due to MARCH_TARGETNATIVE_ALWAYS='y' as to why it's working now so leave that in there but remember which this setting if you change server's cpu model, need to recompile nginx and php-fpm
     
  11. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    3:42 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    I did that, but strange thing was that shutdown through ssh works (my session was closed) and then when I open in web browser my server control panel, there I can see that server is still on
     
  12. eva2000

    eva2000 Administrator Staff Member

    59,284
    12,509
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,141
    Local Time:
    11:42 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Upcloud control panel is slow for such tasks, so you probably have to wait longer.