Get the most out of your Centmin Mod LEMP stack
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. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:27 AM
    1.9.x
    5.5
    so , why my server has stopped the working ?
    that script waist my time and my money !
    so i must install what branch ? beta .8 01 or 02 ?
    my centos version : 6.6
     
  2. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    any number of reasons, github ddos attack could of been one preventing stuff downloading and thus Centmin Mod did not install everything properly or other reasons that initial troubleshooting log analysis could probably tell you.

    Centmin Mod is only for fresh virgin CentOS use. So if you had another control panel or other sites/mysql/php setup BEFORE Centmin Mod install, that would cause problems too. See FAQ item 1 at Centmin Mod FAQ - Menu based Nginx installer

    lastly, .08 is beta for this very reason - beta means not stable and needs testing

    with that said around 20 out of 40 of my servers now run .08 beta 02 code without problems

    FYI, .08 beta02 is latest beta
     
  3. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:27 AM
    1.9.x
    5.5
    nah i have't any thing more . i just installed centos 6.6 and then just run yum update -y and ready for installing centminmod
    but im scared for problem Happening on install process
     
  4. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    well beta is beta, if you don't have time to do learn, troubleshooting and help test and provide feedback, then Centmin Mod might not right for you in it's current state. It's definitely not a set and forget type of script :)
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    3,267
    307
    83
    May 31, 2014
    Ratings:
    +566
    Local Time:
    9:57 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    @Cr0w

    Centminmod is great script and you should give it a try again...

    Even me as a noob i am able with reading and asking here to use it on a very high traffic site without any problems :)

    You will not regret it for sure ! I think you was unlucky that you try to install it when Github was under DDDOS :(
     
    Last edited: Mar 29, 2015
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,267
    307
    83
    May 31, 2014
    Ratings:
    +566
    Local Time:
    9:57 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Or maybe Centminmod can include all latest info of software needed for first install :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  8. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    11:27 AM
    1.9.x
    5.5
    because i'm changed my server os .. there is't any log files all has been removed ;)
     
  9. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 2
  10. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    2 updates to pure-ftpd virtual FTP user features for Centmin Mod .08 beta 02

    First, made an update just now. I added a new update to Centmin Mod .08 beta 02 that you might want to set too via these 2 commands. It changes default created virtual FTP user files/directories to tighter permissions of 0640/0750 respectively instead of 0644/0755 respectively for files/directories. @jeffwidman would like this :)

    Code:
    sed -i 's/Umask                       133:022/Umask                       137:027/' /etc/pure-ftpd/pure-ftpd.conf
    service pure-ftpd restart
    Second, fix pure-ftpd configuration routine for missing files · centminmod/[email protected] · GitHub is a fix for pure-ftpd initial setup where the passwd or db file is missing on initial install which means virtual FTP users aren't created properly when you run centmin.sh menu option 2 to add Nginx vhost.

    For existing Centmin Mod .08 beta 02 users, you can run this command line to run a script to try and fix pure-ftpd and then you will need to manually re-create all pure-ftpd virtual FTP users as per the instructions at end of the script output

    run command/script
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    example of output and instructions for manually re-create all pure-ftpd virtual FTP users
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    
    ensure TLS Cipher preference protects against poodle attacks
    
    create /etc/pure-ftpd/pureftpd.passwd
    
    check tweaks in /etc/pure-ftpd/pure-ftpd.conf
    VerboseLog                  yes
    UnixAuthentication            yes
    # UnixAuthentication can be used only once, but they can be combined
    # together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
    PassivePortRange    3000 3050
    CreateHomeDir               yes
    # 0 : disable SSL/TLS encryption layer (default).
    # 2 : refuse connections that don't use SSL/TLS security mechanisms,
    # 1) Your server has been compiled with SSL/TLS support (--with-tls),
    TLS                      2
    TLSCipherSuite           HIGH:MEDIUM:+TLSv1:!SSLv2:!SSLv3
    
    
    pure-ftpd installed
    Stopping pure-ftpd: [  OK  ]
    Starting pure-ftpd: [  OK  ]
    
    check /etc/pure-ftpd/pureftpd.passwd
    -rw------- 1 root root 0 Mar 31 17:52 /etc/pure-ftpd/pureftpd.passwd
    
    check /etc/pure-ftpd/pureftpd.pdb
    -rw------- 1 root root 2.1K Mar 31 17:52 /etc/pure-ftpd/pureftpd.pdb
    
    end of output will show
    Code:
    #########################################################################
    # Fix completed
    #########################################################################
    because /etc/pure-ftpd/pureftpd.passwd was missing, you will need to
    manually re-create your pure-ftpd virtual FTP user accounts for existing
    nginx vhost accounts using below 3 commands:
    
    where YOURUSERNAME = your FTP username
    where YOURDOMAINNAME.com = your existing domain name Nginx vhost
    #########################################################################
    # 3 commands to manually re-create virtual FTP users
    #########################################################################
    
        pure-pw useradd YOURUSERNAME -u nginx -g nginx -d /home/nginx/domains/YOURDOMAINNAME.com
        pure-pw mkdb
        service pure-ftpd restart
     
    Last edited: Apr 1, 2015
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x

    Fix Too Many Redirects Errors



    Updated both Centmin Mod 1.2.3-eva2000.07 stable and .08 beta 02 builds to fix Too Many Redirects errors on some pecl.php.net located files such as APC Cache download. This was due to a buggy Axel download accelerator which is a multithreaded parallel download tool which downloads faster than single threaded wget. For now I have switched both .07 stable and .08 beta 02 builds from Axel back to using wget until I can test an alternative parallel downloading tool (maybe aria2c).

    There's 3 ways you can upgrade your .07 stable or .08 beta02 code you have on your server. They are outlined in respective upgrade sections of the first posts linked below:
    1. For .07 stable 1st post see section on upgrades Install - Centmin Mod 1.2.3-eva2000.07 stable install | Centmin Mod Community
    2. For .08 beta 02 1st post see section on upgrade to latest code CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ? | Centmin Mod Community
    3. For either .07 stable or .08 beta02 via github command line Upgrade - Working with git command line for updating Centmin Mod local copies | Centmin Mod Community
    Github commit log for
     
    • Like Like x 1
  12. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 5
  13. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Anyone guess what's coming soon to .08 beta 02 ? :)

    Code:
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/apc.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/redis.ini
    Code:
    php -m
    [PHP Modules]
    apc
    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
    mysql
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    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
    zip
    zlib


    yup Redis PHP extension to allow PHP to talk to Redis server phpredis/phpredis · GitHub :D

    Code:
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.7
    And if you need to install Redis via yum

    fyi, you can get redis 2.8 series via YUM so would be interesting to see how that compares to redis 3.x which I have yet to try

    Code:
    yum list redis --disableplugin=priorities --enablerepo=remi -q
    Available Packages
    redis.x86_64    2.8.19-1.el6.remi         remi
    and redis 3.x is in remi-test repo
    Code:
    yum list redis --disableplugin=priorities --enablerepo=remi-test -q
    Available Packages
    redis.x86_64    3.0.0-1.el6.remi           remi-test
     
    Last edited: Apr 8, 2015
    • Like Like x 1
  14. pamamolf

    pamamolf Premium Member Premium Member

    3,267
    307
    83
    May 31, 2014
    Ratings:
    +566
    Local Time:
    9:57 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    I thought that Redis is like Memcache or not?

    Can we use both or it is just an alternative of Memcache?
     
  15. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    9:57 AM
    If the SMTP socket supports IPv6, the CSF will close the connection! (service provider offers: GOOGLE.COM; YANDEX.RU)

    Code:
    # SECTION:IPv6 Port Settings
    # Allow outgoing TCP ports
    TCP6_OUT = "20,21,22,25,53,80,110,113,443,587,993,995"
    
    replace:
    Code:
    # SECTION:IPv6 Port Settings
    # Allow outgoing TCP ports
    TCP6_OUT = "20,21,22,25,53,80,110,113,443,465,587,993,995"
    
    OR
    Code:
    [[email protected] ~]$ sudo nmap -6 -Pn -p 465 smtp.yandex.ru
    
    Starting Nmap 5.51 ( http://nmap.org ) at 2015-04-06 22:26 UTC
    Nmap scan report for smtp.yandex.ru (2a02:6b8::38)
    Host is up.
    PORT    STATE    SERVICE
    465/tcp filtered smtps
    P.S. As you can see the default ipv6 interface Goggle.
    So much for the php script will be the kick in the pants ^_^
    + ADD function
    $ centmin
    item 16 (where add port: <number>)
    # Allow incoming TCP ports
    TCP_IN = "<number>,20,21,22,25,53,80,110,111,143,161,443,465,587.....
     
    Last edited: Apr 7, 2015
    • Informative Informative x 1
  16. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Last edited: Apr 7, 2015
  17. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Redis and Memcached servers can run at the same time to serve different web apps which use them respectively. Redis can do what Memcached does Introduction to Redis – Redis but also supports more features and usages. No expert in Redis myself. But adding redis PHP extension support allows web apps that use redis to use it on Centmin Mod LEMP stack.

    For now just testing the redis PHP extension addition on a private Centmin Mod .08 beta branch first - you should be able to control whether redis PHP extension is installed via centmin.sh variable PHPREDIS=y|n :)
     
  18. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  19. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    9:57 AM
    centmin beta 2
    item 18
    Code:
    Error: suhosin-0.9.37.1.tgz not found!!!Download now ... ... ... ... ....
    - -2015 -04 09:48:20- -07-http://download.suhosin.org/suhosin-0.9.37.1.tgz
    Fault download.suhosin.org of ... 85.214.50.221
    Connect with download.suhosin.org | 85.214.50.221 |: 80... the connection is established.
    HTTP request sent, awaiting response ... 404 Not Found
    4/7/2015 09:48:21 ERROR 404: Not Found.
    EDIT prefix .tgz =>> .tar.gz

    the url :
     
    Last edited: Apr 7, 2015
    • Informative Informative x 1
  20. eva2000

    eva2000 Administrator Staff Member

    39,770
    8,773
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,504
    Local Time:
    4:57 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    ah they changed it on latest version only Download | SUHOSIN

    Committed update fix for inc/suhosin_setup.inc update inc/suhosin_setup.inc download url .tar.gz format · centminmod/[email protected] · GitHub

    thanks :)
     
..