Welcome to Centmin Mod Community
Become a Member

Featured CentOS 7.x How to help test .08 CentOS 7 Betas with Github code ?

Discussion in 'Beta release code' started by eva2000, Jul 11, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  2. Jemekite

    Jemekite New Member

    12
    5
    3
    Jun 10, 2015
    Indonesia
    Ratings:
    +9
    Local Time:
    4:00 AM
    1.9.2
    MariaDB 10
    clang is impressive!,
    usually I need to create swap space on vultr 768 before building nginx and PHP because gcc eat all ram.
    with clang, it's not needed, you're rock @eva2000 !:cool:
    Code:
    [[email protected] ~]# nginx -V
    nginx version: nginx/1.9.1
    built by clang 3.4.2 (tags/RELEASE_34/dot2-final)
    built with LibreSSL 2.1.6
    TLS SNI support enabled
    configure arguments: --with-ld-opt='-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr                   /local/lib' --with-cc-opt='-m64 -mtune=native -g -O2 -fstack-protector --param=s                   sp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-d                   eprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-con                   ditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes                   -uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-ass                   ign' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.c                   onf --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_statu                   s_module --with-http_sub_module --with-http_addition_module --with-http_image_fi                   lter_module --with-http_secure_link_module --with-http_flv_module --with-http_re                   alip_module --with-http_geoip_module --with-openssl-opt=enable-tlsext --add-modu                   le=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-mo                   dule=../headers-more-nginx-module-0.25 --add-module=../nginx-accesskey-2.0.3 --a                   dd-module=../nginx-http-concat-master --with-http_dav_module --add-module=../ngi                   nx-dav-ext-module-0.0.3 --add-module=../openresty-memc-nginx-module-1518da4 --ad                   d-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../ngx_devel_kit                   -0.2.19 --add-module=../set-misc-nginx-module-0.28 --add-module=../echo-nginx-mo                   dule-0.57 --add-module=../lua-nginx-module-0.9.16rc1 --add-module=../lua-upstrea                   m-nginx-module-0.02 --add-module=../lua-upstream-cache-nginx-module-0.1.1 --add-                   module=../nginx_upstream_check_module-0.3.0 --add-module=../nginx-module-vts --w                   ith-openssl=../portable-2.1.6 --with-libatomic --with-threads --with-stream --wi                   th-stream_ssl_module --with-pcre=../pcre-8.37 --with-pcre-jit --with-http_spdy_m                   odule --add-module=../ngx_pagespeed-release-1.9.32.3-beta
    
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    oh yes forgot to mention clang is faster than gcc but also uses less memory than gcc :)
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    hmm my fix might have done something else with different error related nginx lua module heh
    Code:
    + ngx_http_set_misc_module was configured
    adding module in ../echo-nginx-module-0.57
    + ngx_http_echo_module was configured
    adding module in ../lua-nginx-module-0.9.16rc1
    ./configure: error: no ../lua-nginx-module-0.9.16rc1/config was found
    *************************************************
    
    Thu Jun 11 07:54:09 UTC 2015
    Error: 1, Nginx configure failed
    edit: ok something different, directory and file are missing - i abruptly ended via CTRL+C one test run and it terminated before lua-nginx-module had fully downloaded heh
    Code:
     cd /svr-setup/lua-nginx-module-0.9.16rc1
    -bash: cd: /svr-setup/lua-nginx-module-0.9.16rc1: No such file or directory
     
  5. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Going through Centmin Mod /addons Centmin Mod Addons for Menu based Nginx installer for CentOS servers to fix any issues. First one AVG AntiVirus addon /addons/avginstall.sh fixed Install - AVG | Centmin Mod Community :)

    Code:
    addons]# ls -lah
    total 64K
    drwxr-xr-x  2 root root 4.0K Jun 11 07:39 .
    drwxr-xr-x 14 root root 4.0K Jun 11 07:39 ..
    -rwxr-xr-x  1 root root 3.8K Jun 11 22:31 avginstall.sh
    -rwxr-xr-x  1 root root 8.3K Jun 11 07:39 geoip.sh
    -rwxr-xr-x  1 root root 5.4K Jun 11 07:39 linfo.sh
    -rwxr-xr-x  1 root root 5.8K Jun 11 07:39 maldet.sh
    -rwxr-xr-x  1 root root 8.3K Jun 11 07:39 passenger.sh
    -rwxr-xr-x  1 root root 5.8K Jun 11 07:39 python27_install.sh
    -rwxr-xr-x  1 root root 3.2K Jun 11 07:39 wpcli.sh
    Maldet (Linux Malware Detect) script = maldet.sh working fine Maldet - Linux Malware Detect Addon (discussion) | Centmin Mod Community

    Code:
     maldet -h
    Linux Malware Detect v1.4.2
                (C) 2002-2013, R-fx Networks <[email protected]>
                (C) 2013, Ryan MacDonald <[email protected]>
    inotifywait (C) 2007, Rohan McGovern <[email protected]>
    This program may be freely redistributed under the terms of the GNU GPL v2
    
    signature set: 201506058287
    usage /usr/local/sbin/maldet [ OPTION ]
        -b, --background
          Execute operations in the background, ideal for large scans
          e.g: maldet -b -r /home/?/public_html 7
    
        -u, --update
           Update malware detection signatures from rfxn.com
    
        -d, --update-ver
           Update the installed version from rfxn.com
    
        -m, --monitor USERS|PATHS|FILE
           Run maldet with inotify kernel level file create/modify monitoring
           If USERS is specified, monitor user homedirs for UID's > 500
           If FILE is specified, paths will be extracted from file, line spaced
           If PATHS are specified, must be comma spaced list, NO WILDCARDS!
           e.g: maldet --monitor users
           e.g: maldet --monitor /root/monitor_paths
           e.g: maldet --monitor /home/mike,/home/ashton
    
        -k, --kill
           Terminate inotify monitoring service
    
        -r, --scan-recent PATH DAYS
           Scan files created/modified in the last X days (default: 7d, wildcard: ?)
           e.g: maldet -r /home/?/public_html 2
    
        -a, --scan-all PATH
           Scan all files in path (default: /home, wildcard: ?)
           e.g: maldet -a /home/?/public_html
    
        -c, --checkout FILE
           Upload suspected malware to rfxn.com for review & hashing into signatures
    
        -l, --log
           View maldet log file events
    
        -e, --report SCANID email
           View scan report of most recent scan or of a specific SCANID and optionally
           e-mail the report to a supplied e-mail address
           e.g: maldet --report
           e.g: maldet --report list
           e.g: maldet --report 050910-1534.21135
           e.g: maldet --report SCANID [email protected]
    
        -s, --restore FILE|SCANID
           Restore file from quarantine queue to orginal path or restore all items from
           a specific SCANID
           e.g: maldet --restore /usr/local/maldetect/quarantine/config.php.23754
           e.g: maldet --restore 050910-1534.21135
    
        -q, --quarantine SCANID
           Quarantine all malware from report SCANID
           e.g: maldet --quarantine 050910-1534.21135
    
        -n, --clean SCANID
           Try to clean & restore malware hits from report SCANID
           e.g: maldet --clean 050910-1534.21135
    
        -U, --user USER
           Set execution under specified user, ideal for restoring from user quarantine or
           to view user reports.
           e.g: maldet --user nobody --report
           e.g: maldet --user nobody --restore 050910-1534.21135
    
        -co, --config-option VAR1=VALUE,VAR2=VALUE,VAR3=VALUE
           Set or redefine the value of conf.maldet config options
           e.g: maldet --config-option [email protected],quar_hits=1
    
        -p, --purge
           Clear logs, quarantine queue, session and temporary data.
     
    Last edited: Jun 12, 2015
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Fixed /addons/passenger.sh addon with the following commits in Centmin Mod .08 beta03 at least.

    The /addons/passenger.sh addon installs Phusion Passenger Nginx Module for Nginx which allows you to deploy both Python and Ruby based applications with Nginx.
    Unfortunately, Clang compiler has issues compiling Nginx with Phusion Passenger's Nginx module, so if NGINX_PASSENGER=y is set in centmin.sh, the Nginx configure routine auto switches back to GCC compiler. Which works fine
    To install Phusion Passenger for Nginx on Centmin Mod Nginx

    1. run /addons/passenger.sh to install required software including passenger, node.js, ruby, rails, and rubygem

    Code:
    cd /path/to/addons
    chmod +x passenger.sh
    ./passenger.sh
    
    End of install will give next step instructions for completing Phusion Passenger install
    2. then log out of SSH windows session

    3. log back into SSH and edit centmim.sh and set NGINX_PASSENGER=y

    4. then run centmin.sh menu option 4 to recompile Nginx

    5. Enable /usr/local/nginx/conf/passenger.conf include file. Scripts will setup a /usr/local/nginx/conf/passenger.conf include file in nginx.conf which by default is commented out.
    Code:
    http {
    #include /usr/local/nginx/conf/passenger.conf;
    need to uncomment it and restart nginx
    Code:
    http {
    include /usr/local/nginx/conf/passenger.conf;
    Contents of /usr/local/nginx/conf/passenger.conf
    Code:
    passenger_root /usr/local/rvm/gems/ruby-2.2.2/gems/passenger-5.0.10;
    passenger_ruby /usr/local/rvm/bin/ruby;
    passenger_max_pool_size 4;
    
     
    Last edited: Jun 12, 2015
  7. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:00 PM
    Updated to the latest centmin code and upgraded both php and nginx.
    Do we have to change the cypher suite to take advantage of the libressl?
     
  8. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  9. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:00 PM
  10. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  11. Andy

    Andy Active Member

    433
    66
    28
    Aug 6, 2014
    Ratings:
    +90
    Local Time:
    5:00 PM
    • Like Like x 1
  12. rdan

    rdan Well-Known Member

    4,672
    1,122
    113
    May 25, 2014
    Ratings:
    +1,664
    Local Time:
    5:00 AM
    Mainline
    10.2
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah you can do that too :)

    Updated .07 stable and .08 beta 03 with updated software versions in light of OpenSSL 1.02c release.

    Yes guys OpenSSL 1.02c was released Security - OpenSSL 1.0.2c Released & Updating Centmin Mod Nginx SSL Support | Centmin Mod Community
     
  14. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  15. Mask

    Mask Active Member

    107
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    2:00 AM
    Nginx 1.9.1
    MariaDB 10.0.19
    Fresh install on Centos 6.5 OpenVZ based..
    Setting up an other server from scratch. Will let you know if I find any issue :)
     
    • Like Like x 1
  16. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  17. Mak Adang

    Mak Adang Member

    60
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    4:00 AM
    1.9.0
    10.0.18-MariaDB
    Agree with @RoldanLT @eva2000 not sleeping :)
    Now #CMM have option to compile with #CLANG i read back to know it more but can't find how to do it step by step @eva2000
    Thank you
     
  18. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    just upgrade to latest .08 beta03 and run centmin.sh menu option 4 to recompile nginx it auto defaults to clang compiler unless you enable NGINX_PASSENGER='y' in centmin.sh
     
    • Like Like x 1
  19. Mak Adang

    Mak Adang Member

    60
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    4:00 AM
    1.9.0
    10.0.18-MariaDB
    Thanks @eva2000 before i use option no 23 to update #CMM and update current #CMM then upgrade nginx option no 4 not work.
    Then i try update #CMM using git pull then upgrade nginx then it works
    Thank you
     
  20. eva2000

    eva2000 Administrator Staff Member

    41,754
    9,400
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,445
    Local Time:
    7:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    strange in future if you can log/save the error messages or steps that would be great :)

    Already applied a few more commits for imagick PHP 7 extension support and prep for igbinary PHP 7 extension support PHP - PHP 7.0.0 Alpha 1 Released | Centmin Mod Community