Welcome to Centmin Mod Community
Register Now

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

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for testing and confirmation of my suspicions

    looks like something to investigate when I have more free time :)
     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5

    Custom PHP .ini Settings


    Heads up, with Centmin Mod .08 beta, PHP custom default values are set in a .ini file at /etc/centminmod/php.d/custom_php.ini. So if you want to set your own custom php.ini settings that survive upgrades, you need to create a custom_php2.ini file at /etc/centminmod/php.d/custom_php2.ini which is alphabetically after custom_php.ini (see here)
    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/apcu.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/custom_php.ini,
    /etc/centminmod/php.d/custom_php2.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/newrelic.ini,
    /etc/centminmod/php.d/zendopcache.ini
     
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    Made an update to Centmin Mod .08 beta's inc/phpsededit.inc file to change custom_php.ini to a_customphp.ini file name and make it adjustable via variable PHPINICUSTOM moved default custom PHP .ini settings to custom .ini file alphabeticall... · 42c6419 · centminmod/centminmod · GitHub This would make it more likely that setting your own filename in /etc/centminmod/php.d/yourfile.ini will be listed alphabetically below a_customphp.ini to prevent conflicts and ensure yourfile.ini takes priority and overrides whatever is set in a_customphp.ini.

    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/apcu.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/custom_php2.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/newrelic.ini,
    /etc/centminmod/php.d/zendopcache.ini
    
     
    Last edited: Dec 22, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5

    Nginx 1.7.9 & ngx_cache_purge compatibility update



    You can either update the .08 beta source code via outlined instructions or manually edit your server's centmin.sh as below.

    ngx_cache_pure 2.3 is out might help FRiCKLE Labs / nginx / ngx_cache_purge

    change log http://labs.frickle.com/nginx_ngx_cache_purge/CHANGES

    in centmin.sh edit

    from
    Code:
    NGINX_CACHEPURGEVER='2.2'
    to
    Code:
    NGINX_CACHEPURGEVER='2.3'
    and run centmin.sh menu option 4 to recompile Nginx for 1.7.9
     
    Last edited: Dec 24, 2014
  5. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    12:54 AM
    1.7.2
    5.5
    I got the same on KVM:

    Error: IPSET: [ipset v6.11: Kernel error received: Invalid argument], at line 4363 in /usr/sbin/csf

    You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error
     
  6. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    pre-Dec 15th .08 build ?
     
  7. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    12:54 AM
    1.7.2
    5.5
    I got it today from github
     
  8. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    what VPS virtualisation and VPS provider ? could be the kernel used doesn't have IPSET support
     
  9. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    12:54 AM
    1.7.2
    5.5
    proxmoxx / KVM (filemedia.de). I even installed a different kernel for centos 6 (ELRepo : kernel-lt). Still the same problem

    But with "sed -i 's/LF_IPSET = "1"/LF_IPSET = "0"/g' /etc/csf/csf.conf" it works
     
  10. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    Could be those kernels don't support IPSET IP sets What do you get when you type the commands

    Code:
    ipset version
    updatedb
    locate kernel/net/netfilter/ipset
    yum -q list ipset ipset-devel
    
    and command
    Code:
    lsmod | grep ip_set
    
    i.e.
    Code:
    lsmod | grep ip_set
    ip_set_hash_net        31664  2
    ip_set                 36629  2 ip_set_hash_net,xt_set
    nfnetlink              14606  1 ip_set
     
    Last edited: Jan 1, 2015
  11. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    12:54 AM
    1.7.2
    5.5
    Code:
    [root@de ~]# ipset version
    ipset v6.11, protocol version: 6
    [root@de ~]# updatedb
    [root@de ~]# locate kernel/net/netfilter/ipset
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ip.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_net.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_hash_netport.ko
    /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/net/netfilter/ipset/ip_set_list_set.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_ip.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_ipmac.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_bitmap_port.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ip.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipport.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipportip.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_ipportnet.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_net.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_netiface.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_hash_netport.ko
    /lib/modules/3.10.63-1.el6.elrepo.x86_64/kernel/net/netfilter/ipset/ip_set_list_set.ko
    [root@de ~]# yum -q list ipset ipset-devel
    Installierte Pakete
    ipset.x86_64                             6.11-3.el6                        @base
    ipset-devel.x86_64                       6.11-3.el6                        @base
    and

    Code:
    [root@de ~]# lsmod | grep ip_set
    ip_set_hash_net        26431  0
    ip_set                 30946  2 xt_set,ip_set_hash_net
    nfnetlink              14606  1 ip_set
    
     
  12. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    strange indeed should work then !

    tried rebooting server ?

    could be something specific to Proxmox setup ?
     
  13. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    If you deliberately set LF_IPSET=1 in csf.conf and restart, what does the content of /etc/csf/csf.error have ?
     
  14. Sebastian B.

    Sebastian B. New Member

    25
    4
    3
    Aug 23, 2014
    Ratings:
    +4
    Local Time:
    12:54 AM
    1.7.2
    5.5
    Now LF_IPSET=1 works. Strange but seems still bugy. I need on bootup reactivate and then disable csf that i can connect via ssh to the server
     
  15. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    check /etc/csf/ directories files content in csf.deny to double check if your ip address is blocked and also you can grep and search your ip address to see if there's any matches in iptables
    Code:
    csf -g youripaddress
    
    can also remove the ip from csf.deny via
    Code:
    csf -dr youripaddress
    
    see the help commands for more info
    Code:
    csf -h
    
     
  16. JarylW

    JarylW Active Member

    216
    40
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +102
    Local Time:
    6:54 AM
    Did anything change recently? With bash installer or decompress method both seem to land my vultr instance without the centmin commands. Something not copying to the bin folder?

    I need to go to /root/centminmod/centmin.sh

    Other than that all seems to work .

    Edit: forgot to mention this is on their CentOS 7 template. 1GB japan location
     
  17. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    try logging out and back in after initial install as centmin shortcut only works after that step - always has been that way :)

    for other shortcut commands they should work
     
  18. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  19. JarylW

    JarylW Active Member

    216
    40
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +102
    Local Time:
    6:54 AM
    Last edited: Jan 5, 2015
    • Like Like x 1
  20. eva2000

    eva2000 Administrator Staff Member

    33,763
    7,469
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,482
    Local Time:
    8:54 AM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for the feedback and testing.. guess still need more time to investigating for OpenVZ
     
..