Join the community today
Become a Member

Beta Branch Centmin Mod .09 beta branch Testing

Discussion in 'Beta release code' started by eva2000, Aug 12, 2015.

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,882
    947
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,291
    Local Time:
    12:01 PM
    1.11
    10.2
    • Funny Funny x 1
  2. Peace-Keeper

    Peace-Keeper Member

    46
    8
    8
    Jul 9, 2014
    Ratings:
    +11
    Local Time:
    12:01 AM
    Mainline
    10.1
    Cloud have been an issue exclude to Flarum?

    It is a puzzling why it only was "my" issue.
     
  3. Peace-Keeper

    Peace-Keeper Member

    46
    8
    8
    Jul 9, 2014
    Ratings:
    +11
    Local Time:
    12:01 AM
    Mainline
    10.1
    • Informative Informative x 1
  4. RoldanLT

    RoldanLT Well-Known Member

    3,882
    947
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,291
    Local Time:
    12:01 PM
    1.11
    10.2
    • Like Like x 1
  5. Peace-Keeper

    Peace-Keeper Member

    46
    8
    8
    Jul 9, 2014
    Ratings:
    +11
    Local Time:
    12:01 AM
    Mainline
    10.1
    TIME is a big problem for me. I have now, before I have tomorrow. If it cannot work now, tomorrow is no good either.
     
  6. RoldanLT

    RoldanLT Well-Known Member

    3,882
    947
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,291
    Local Time:
    12:01 PM
    1.11
    10.2
    I would choose XenForo then.
     
  7. Peace-Keeper

    Peace-Keeper Member

    46
    8
    8
    Jul 9, 2014
    Ratings:
    +11
    Local Time:
    12:01 AM
    Mainline
    10.1
    That's not acceptable. Budget for a few of my smaller sites is now $0. Has to be free.
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    sounds more like Flarum issue.
     
    • Agree Agree x 1
  9. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    Just a heads up for 123.09beta01's ngx_brotli compression module support some bug fixes are coming for
    Unforunately, currently only Firefox 44+ support brotli compression as an alternative to gzip compression for web pages. Brotli has 20-40% better compression that gzip so should result in smaller file and page sizes = faster page loading :)

    Updated to Nginx 1.9.7 with fixed ngx_brotli module and here's a side by side compare

    left side ngx_brotli runs only on https so via Nginx HTTP/2
    vs
    right side non-https normal gzip deflate compressed pages

    using Firefox 45a01 nightly for brotli support

    ff45a01-nightly-ngxbrotli-compare-01.png

    content-encoding = br which is brotli instead of gzip deflate

    ff45a01_centminmodcom_test-00.png
     
    Last edited: Nov 18, 2015
    • Informative Informative x 1
  10. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    Updated both Centmin Mod 123.08stable and 123.09beta01 builds for now disabled Nginx vhost traffic stats module temporarily so that centmin.sh variable defaults to NGINX_VHOSTSTATS=n. Posted an issue report on @vozlt's issue tracker at broken nginx 1.9.7 support ? · Issue #27 · vozlt/nginx-module-vts · GitHub too.

    Edit: Actual work around fix found broken nginx 1.9.7 support ? · Issue #27 · vozlt/nginx-module-vts · GitHub so re-enabled NGINX_VHOSTSTATS=y :)

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:

    It is an issue i didn't have with Nginx 1.9.7 a few days ago so the Nginx vhost traffic stats latest November 20th commits might have broken something in terms of compatibility with Nginx 1.9.7

    Code:
    Fri Nov 20 23:28:44 UTC 2015
    Success: Nginx make ok
    
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.9.7'
    ccache /usr/bin/clang -ferror-limit=0 -c -I/usr/local/include/luajit-2.1  -pipe  -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Werror -g -m64 -mtune=native -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_pagespeed-1.9.32.10-beta/psol/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/chromium/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/google-sparsehash/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/protobuf/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/re2/src -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/out/Release/obj/gen -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/out/Release/obj/gen/protoc_out/instaweb -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/apr/src/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/aprutil/src/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/apr/gen/arch/linux/x64/include -I ../ngx_pagespeed-1.9.32.10-beta/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../ngx_devel_kit-0.2.19/objs -I objs/addon/ndk -I /usr/local/include/luajit-2.1 -I ../lua-nginx-module-0.9.18/src/api -I ../nginx_upstream_check_module-0.3.0 -I ../pcre-8.37 -I ../libressl-2.2.4/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.2.19/src -I src/mail -I src/stream \
            -o objs/addon/src/ngx_http_vhost_traffic_status_module.o \
            ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:904:22: error: adding 'unsigned int' to a string does not append to the string [-Werror,-Wstring-plus-int]
        len = ngx_strlen(ngx_vhost_traffic_status_group_to_string(type));
              ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:61:51: note: expanded from macro 'ngx_strlen'
    #define ngx_strlen(s)       strlen((const char *) s)
                                                      ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:904:22: note: use array indexing to silence this warning
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:61:51: note: expanded from macro 'ngx_strlen'
    #define ngx_strlen(s)       strlen((const char *) s)
                                                      ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:915:23: error: adding 'unsigned int' to a string does not append to the string [-Werror,-Wstring-plus-int]
        p = ngx_cpymem(p, ngx_vhost_traffic_status_group_to_string(type), len);
            ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:103:60: note: expanded from macro 'ngx_cpymem'
    #define ngx_cpymem(dst, src, n)   (((u_char *) memcpy(dst, src, n)) + (n))
                                                               ^
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:915:23: note: use array indexing to silence this warning
    ../nginx-module-vts/src/ngx_http_vhost_traffic_status_module.c:341:30: note: expanded from macro 'ngx_vhost_traffic_status_group_to_string'
        : "NO\0UA\0UG\0CC\0FG\0" + 3 * n                                           \
                                 ^
    src/core/ngx_string.h:103:60: note: expanded from macro 'ngx_cpymem'
    #define ngx_cpymem(dst, src, n)   (((u_char *) memcpy(dst, src, n)) + (n))
                                                               ^
    2 errors generated.
    make[1]: *** [objs/addon/src/ngx_http_vhost_traffic_status_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.9.7'
    make: *** [install] Error 2
     
    Last edited: Nov 21, 2015
    • Informative Informative x 2
  11. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
  12. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5

    Optimise Nginx GeoIP Module Enabled Memory Usage for <768MB Systems



    For Centmin Mod 123.09beta01 branch, optimise nginx memory usage on low memory systems <=768MB (~741MB after system overhead) or when NGINX_GEOIPMEM=n. When nginx geoip module is enabled (by default), nginx uses in memory caching of geoip country, city databases. When NGINX_GEOIPMEM=n is set, it changes it so that nginx uses disk based caching instead of memory based caching.

    If you do not use nginx geoip module at all, you can disable it in centmin.sh or via persistent configure file /etc/centminmod/custom_config.inc and set NGINX_GEOIP=n + recompile nginx via centmin.sh menu option 4 to disable the nginx geoip module completely.

    Default nginx geoip module enabled memory usage when enabled for memory caching
    Code:
    ps aufx | grep nginx | grep -v grep
    root      2608  0.0  1.5 173748 29196 ?        Ss   22:20   0:00 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    nginx     2610  0.0  1.7 181944 33708 ?        S<l  22:20   0:00  \_ nginx: worker process
    nginx     2611  0.0  1.7 181944 33696 ?        S<l  22:20   0:00  \_ nginx: worker process
    
    nginx geoip module enabled memory usage when switched from memory to disk caching via centmin.sh NGINX_GEOIPMEM=n variable. NGINX_GEOIPMEM=y is for default nginx memory cached geoip database data.
    Code:
    ps aufx | grep nginx | grep -v grep
    root     16457  0.0  0.3 153256  6496 ?        Ss   22:26   0:00 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    nginx    16458  0.0  0.5 161452 10876 ?        S<l  22:26   0:00  \_ nginx: worker process
    nginx    16459  0.1  0.5 161452 10876 ?        S<l  22:26   0:00  \_ nginx: worker process
    
    • VSZ difference = 181944 - 161462 = 20,492 = 20.01MB or 11.26% reduction
    • RSS difference = 33708 - 10876 = 22,832 = 22.3MB or 67.73% reduction
    Commits made:
     
    Last edited: Nov 29, 2015
    • Informative Informative x 2
  13. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
  14. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    2:01 PM
    None
    None
    Testing 123.09 beta01 and trying to install Postgresql without luck. Have POSTGRESQL=y in centmin.sh and the addtional file, have reloaded PHP twice and still no PSQL. Don't know of the PHP version has anything to do with it, loading 5.6.13. I have just stuffed up my install of centmin mod so will have to start all over again but thought I would let you know.

    Cheers
    Bruce
     
    • Informative Informative x 1
  15. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    Okay 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
     
  16. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    @speedway on CentOS 7 or 6 ?

    Looks like postgresql rpms had updated their version named files at centminmod/postgresql.inc at 123.09beta01 · centminmod/centminmod · GitHub lists the routine that sets up the postresql yum rpms. But the older 9.4.1.noarch.rpm also exist so shouldn't be a problem

    Code (Text):
    lynx -dump -listonly http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/ | grep pgdg-centos94
    153. http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-1.noarch.rpm
    154. http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-2.noarch.rpm


    Code (Text):
    lynx -dump -listonly http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/ | grep pgdg-centos94                                              
    143. http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-1.noarch.rpm
    144. http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-2.noarch.rpm


    Code (Text):
    lynx -dump -listonly http://yum.postgresql.org/9.4/redhat/rhel-6-i386/ | grep pgdg-centos94
    149. http://yum.postgresql.org/9.4/redhat/rhel-6-i386/pgdg-centos94-9.4-1.noarch.rpm
    150. http://yum.postgresql.org/9.4/redhat/rhel-6-i386/pgdg-centos94-9.4-2.noarch.rpm
    


    @speedway what does this command output ?
    Code:
    yum list postgresql94 postgresql94-devel postgresql94-contrib postgresql94-libs postgresql94-server --disableplugin=priorities
     
  17. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
  18. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5
    Spoke too soon some bug during php recompile for postgresql php extension
    Code (Text):
    Complete!
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --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-vpx-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-pdo-pgsql=/usr/pgsql-9.4 --with-config-file-scan-dir=/etc/centminmod/php.d
    inc/php_configure.inc: line 261: ../configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.


    edit: should be fixed by this update update inc/postgresql.inc · centminmod/centminmod@f4b27ad · GitHub :)

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    ereg
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    libxml
    mbstring
    mcrypt
    memcache
    memcached
    mhash
    mongo
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    


    Code (Text):
    php --ri pdo_pgsql
    
    pdo_pgsql
    
    PDO Driver for PostgreSQL => enabled
    PostgreSQL(libpq) Version => 9.4.5
    Module version => 1.0.2
    Revision =>  $Id: af568c8ae63693bc2b766337bd4731078e62f9b4 $ 


    Code (Text):
    yum list postgresql94 postgresql94-devel postgresql94-contrib postgresql94-libs postgresql94-server --disableplugin=priorities -q
    Installed Packages
    postgresql94.x86_64                                                                                                           9.4.5-1PGDG.rhel7                                                                                                    @pgdg94
    postgresql94-contrib.x86_64                                                                                                   9.4.5-1PGDG.rhel7                                                                                                    @pgdg94
    postgresql94-devel.x86_64                                                                                                     9.4.5-1PGDG.rhel7                                                                                                    @pgdg94
    postgresql94-libs.x86_64                                                                                                      9.4.5-1PGDG.rhel7                                                                                                    @pgdg94
    postgresql94-server.x86_64                                                                                                    9.4.5-1PGDG.rhel7                                                                                                    @pgdg94
     
    Last edited: Nov 30, 2015
    • Like Like x 1
  19. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    2:01 PM
    None
    None
    Sorry got busy with other things (annoying children!) but see you have been your efficient self as usual and cured the problem. Before I came back here I only found this line in the php log:

    Code:
    inc/php_configure.inc: line 154: postgresqlinstall: command not found
    
    so I will now refresh the shell script and try again. Thank you once again for such a speedy fix!

    Cheers
    Bruce
     
    • Like Like x 1
  20. eva2000

    eva2000 Administrator Staff Member

    29,732
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    2:01 PM
    Nginx 1.13.x
    MariaDB 5.5