Discover Centmin Mod today
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

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    You're welcome and feedback appreciated :D
    Thanks mate..StartledPhoenix's suggestion was just what Centmin Mod needed as a temp work around until full jailed/chroot user features are ready :D
     
  2. rdan

    rdan Well-Known Member

    4,713
    1,137
    113
    May 25, 2014
    Ratings:
    +1,691
    Local Time:
    8:00 AM
    Mainline
    10.2
    What if I really don't need FTP support, and don't want to install that pureftpd?
    Is it possible?
     
  3. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    On fresh Centmin Mod .08 installs centmin.sh has a new option PUREFTPD_DISABLED=n change that to PUREFTPD_DISABLED=y to disable pure-ftpd service post initial install. It's still installed but disabled after install and nginx add vhost menu option 2 in centmin.sh automatically detects PUREFTPD_DISABLED=y and doesn't prompt or do any pure-ftpd virtual ftp user routines and skips those for old method prior to pure-ftpd

    also dedicated thread at Centmin Mod .08 beta + pure-ftpd virtual FTP user support | Centmin Mod Community
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 2
  5. GhoHan

    GhoHan Member

    33
    14
    8
    Jun 1, 2014
    Ratings:
    +14
    Local Time:
    7:00 AM
    Nginx 1.13.X
    MariaDB 10.1.X
    i will try :) i like this update :)
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  7. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    4:00 PM
    What is this issue and how does it affect the server?

    I checked Github and not seeing it, also searched forum but not getting any relevant hits...
     
  8. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    some folks reported centos 7 + openvz + centmin mod nginx would have issues with nginx restarts failing to start up

    i did test it and did have such problems at time of reports, but lately haven't experienced it so not sure yet - something I'd need to look at when I have more free time :)
     
  9. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    4:00 PM
    Yeah, I just hit this myself.

    Centos 7, Nginx compiled both with and without IPv6. OpenVZ 1GB RAM VPS from Ramnode.

    `service nginx restart` results in a "FAIL". Rebooted the machine to make sure I wasn't missing anything. Still getting "FAIL"
     
  10. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah it's weird, most recent tests for me have it working on CentOS 7 + OpenVZ + .08 beta but was failing before.
     
  11. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    thanks to @jeffwidman for giving me access to his CentOS 7 + OpenVZ server to troubleshooting Centmin Mod .08's nginx failure to restart issue. I found the problem and why it only is a problem on some OpenVZ + CentOS 7 installs. It seems some OpenVZ images that web hosts use have Apache http server installed an running out of the box, so when Nginx tries to restart/start it can not bind to port 80 and thus fails to start Nginx. OpenVZ images I test with do not have Apache http server running so I didn't experience this.

    For CentOS 6 and Centmin Mod .08 betas, Apache is stopped and disabled but for some reason CentOS 7 installs lets Apache still run. So will need to fix that.

    The proof

    nginx error on restart/start
    Code:
    ngxrestart
    Restarting nginx (via systemctl):  Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
                                                               [FAILED]
    
    journalctl -xn
    -- Logs begin at Thu 2015-01-29 03:15:46 UTC, end at Tue 2015-02-17 11:12:44 UTC. --
    Feb 17 11:12:42 hostname nginx[1355]: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 17 11:12:42 hostname nginx[1355]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 17 11:12:43 hostname nginx[1355]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 17 11:12:43 hostname nginx[1355]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 17 11:12:44 hostname nginx[1355]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
    Feb 17 11:12:44 hostname nginx[1355]: nginx: [emerg] still could not bind()
    Feb 17 11:12:44 hostname nginx[1355]: [FAILED]
    Feb 17 11:12:44 hostname systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 17 11:12:44 hostname systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    -- Subject: Unit nginx.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit nginx.service has failed.
    --
    -- The result is failed.
    Feb 17 11:12:44 hostname systemd[1]: Unit nginx.service entered failed state.
    find what is listening on port 80
    Code:
    lsof -i :80
    COMMAND   PID   USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
    httpd     399   root    4u  IPv6 1974102768      0t0  TCP *:http (LISTEN)
    httpd     424 apache    4u  IPv6 1974102768      0t0  TCP *:http (LISTEN)
    httpd   30703 apache    4u  IPv6 1974102768      0t0  TCP *:http (LISTEN)
    Code:
    systemctl stop httpd.service 
    Code:
    ngxrestart
    Restarting nginx (via systemctl):                          [  OK  ]
    so to figure out why Centmin Mod .08 is allow httpd service to run still after initial install :)

    edit: was missing a routine specific for CentOS 7 detection of Apache heh, committed fix to .08 beta on github update inc/nginx_install.inc for CentOS 7 + OpenVZ ensure Apache is disa... · f511c35 · centminmod/centminmod · GitHub :)

    edit2: much closer to making .08 a stable release - just need more testing feedback for CentOS 7 + .08 beta ;) :D
     
    Last edited: Feb 17, 2015
    • Like Like x 2
  12. pamamolf

    pamamolf Premium Member Premium Member

    3,526
    342
    83
    May 31, 2014
    Ratings:
    +656
    Local Time:
    2:00 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    I will test Centos 7 on my test vps on the weekend and i try to find any bugs and help :)
    Thanks George :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Made minor update to .08 beta's memcached init.d file as it was missing a few variables that I recently added update /etc/init.d/memcached fix missing parameters for .08 beta · cf55281 · centminmod/centminmod · GitHub

    For existing Centmin Mod users you can simply just grab and update your /etc/init.d/memcached file using these commands and then readjust the memory limit you allocated to memcached server(s) if you customised the memory allocation
    Code:
    rm -rf /etc/init.d/memcached; wget -O /etc/init.d/memcached https://raw.githubusercontent.com/centminmod/centminmod/123.08centos7beta01/config/memcached/memcached; chmod +x /etc/init.d/memcached
    service memcached restart
     
    • Like Like x 3
  14. xDragonZ

    xDragonZ New Member

    4
    2
    3
    Jun 4, 2014
    Ratings:
    +2
    Local Time:
    8:00 AM
    How about add a check if it is PHP 5.6 then disable apc.ini in /etc/centminmod/php.d folder.

    Edit: Ops, just notice we can disable it by changing ZOPCACHEDFT value in centmin.sh

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
     
    Last edited: Feb 25, 2015
  15. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah ZOPCACHEDFT overrides default APC Cache apc.ini :)
     
  16. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  17. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  18. rdan

    rdan Well-Known Member

    4,713
    1,137
    113
    May 25, 2014
    Ratings:
    +1,691
    Local Time:
    8:00 AM
    Mainline
    10.2
  19. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    no no.. shell_exec is for PHP code trying to run shell commands.. so reverse of what you want.. You can still run php scripts via SSH command line.
     
    • Like Like x 1
  20. eva2000

    eva2000 Administrator Staff Member

    42,041
    9,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,597
    Local Time:
    10:00 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1