Get the most out of your Centmin Mod LEMP stack
Become a Member

PHP-FPM XenForo Issue & Centmin

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Oxide, Jun 19, 2015.

  1. Oxide

    Oxide Active Member

    503
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    5:36 PM
    Ok.

    I've tried this on two servers, one running latest BETA Version of CentMin, and one running the latest stable version.

    Both of the versions are getting 502 Gateaway error when using "Contact Us" under XenForo. As well as registering (when it sends mail I guess).

    One server is hosted with OVH, and have 8 Cores * 3.4 GHz, 2GB Ram & 100 GB HDD.
    The second server is hosted with BuyVM, have 4 Cores * 2.0 GHz, 1GB Ram and 100 GB SSD.

    Both servers are having exactly same issue with XenForo. Both of the installations have no firewall, and both of the installations also get the following php-fpm error:

    Code:
    [root@server ~]# tail -10 /var/log/php-fpm/www-error.log
    [18-Jun-2015 20:13:06] WARNING: [pool www] child 13365 exited on signal 11 (SIGSEGV) after 4.419570 seconds from start
    [18-Jun-2015 20:19:00] WARNING: [pool www] child 14899 exited on signal 11 (SIGSEGV) after 10.371437 seconds from start
    [18-Jun-2015 20:25:07] WARNING: [pool www] child 16400 exited on signal 11 (SIGSEGV) after 22.441705 seconds from start
    [18-Jun-2015 20:28:31] WARNING: [pool www] child 17101 exited on signal 11 (SIGSEGV) after 71.208552 seconds from start
    [18-Jun-2015 21:53:27] WARNING: [pool www] child 5937 exited on signal 11 (SIGSEGV) after 1.182457 seconds from start
    [18-Jun-2015 21:54:27] WARNING: [pool www] child 5981 exited on signal 11 (SIGSEGV) after 32.221898 seconds from start
    [18-Jun-2015 21:56:58] WARNING: [pool www] child 6719 exited on signal 11 (SIGSEGV) after 28.491505 seconds from start
    [18-Jun-2015 22:09:04] WARNING: [pool www] child 9749 exited on signal 11 (SIGSEGV) after 15.726393 seconds from start
    [18-Jun-2015 22:10:02] WARNING: [pool www] child 10398 exited on signal 11 (SIGSEGV) after 0.027713 seconds from start
    [18-Jun-2015 22:11:53] WARNING: [pool www] child 10513 exited on signal 11 (SIGSEGV) after 0.028442 seconds from start
    
    Code:
    [root@root ~]# tail -10 /var/log/php-fpm/www-error.log
    [18-Jun-2015 17:22:54] WARNING: [pool www] child 31844 exited on signal 11 (SIGSEGV) after 88.450807 seconds from start
    [18-Jun-2015 17:30:33] WARNING: [pool www] child 31859 exited on signal 11 (SIGSEGV) after 458.763629 seconds from start
    [18-Jun-2015 17:30:45] WARNING: [pool www] child 1243 exited on signal 11 (SIGSEGV) after 12.028237 seconds from start
    [18-Jun-2015 17:30:56] WARNING: [pool www] child 31845 exited on signal 11 (SIGSEGV) after 552.996923 seconds from start
    [18-Jun-2015 17:31:16] WARNING: [pool www] child 1246 exited on signal 11 (SIGSEGV) after 19.751067 seconds from start
    [18-Jun-2015 17:34:22] WARNING: [pool www] child 1244 exited on signal 11 (SIGSEGV) after 217.345203 seconds from start
    [18-Jun-2015 17:34:57] WARNING: [pool www] child 31229 exited on signal 11 (SIGSEGV) after 961.465952 seconds from start
    [18-Jun-2015 17:35:15] WARNING: [pool www] child 1899 exited on signal 11 (SIGSEGV) after 53.068573 seconds from start
    [18-Jun-2015 17:35:35] WARNING: [pool www] child 1900 exited on signal 11 (SIGSEGV) after 38.395242 seconds from start
    [18-Jun-2015 17:36:01] WARNING: [pool www] child 1911 exited on signal 11 (SIGSEGV) after 25.878647 seconds from start
    
    XenForo was running totally fine on cPanel & VestaCP.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    Full VPS specs ? Other php scripts besides Xenforo running ? what specifically ?

    On Centmin Mod .08 beta03 one, type in SSH the command cminfo and copy and paste info into CODE wrap tag here (rename or mask any domain or databases you don't want to make public)

    Code:
    cminfo
    However, Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such. The problem you have is PHP is segfaulting so need to troubleshoot it as outlined here and here.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    might want to edit out domain names and pure-ftpd passwords so remove thsoe pastebins and reupload new ones (don't edit) ;)
     
  4. Oxide

    Oxide Active Member

    503
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    5:36 PM
    shit well here you go again: cminfo - Pastebin.com
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah i mean pure-ftpd usernames not pure-ftpd passwords but still :)

    you missed some under
    Code:
    Pure-FTP Virtual FTP Info:
    probably best to private message me/private conversation the link heh
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    Config wise you look fine.. but to delve deeper you need to troubleshoot it as outlined here and here.
     
  7. Oxide

    Oxide Active Member

    503
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    5:36 PM
    I found this interesting in error.log (nginx).

    Code:
    2015/06/18 18:34:26 [error] 2472#0: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 179.181.191.156, server: gamerz.me, request: "POST /register/validate-field HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "gamerz.me", referrer: "http://gamerz.me/register/"
    2015/06/18 18:34:36 [error] 2472#0: *17 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 179.181.191.156, server: gamerz.me, request: "POST /register/validate-field HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "gamerz.me", referrer: "http://gamerz.me/register/"
    
    and

    Code:
    Jun 18 18:31:46 root postfix/smtp[1766]: 897A713E12C7: host smtp-in.sfr.fr[93.17.128.7] refused to talk to me: 554 5.7.1 Client host rejected: cannot find your reverse hostname, [104.244.77.92]
    Jun 18 18:31:46 root postfix/smtp[1767]: 8C2F913E12C3: host front5.ok.de[5.9.24.19] said: 450 4.1.8 <nginx@root.gamerz.me>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Jun 18 18:31:46 root postfix/smtp[1767]: 8C2F913E12C3: host front4.ok.de[5.9.24.18] said: 450 4.1.8 <nginx@root.gamerz.me>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Jun 18 18:31:46 root postfix/smtp[1767]: 8C2F913E12C3: host front1.ok.de[5.9.24.9] said: 450 4.1.8 <nginx@root.gamerz.me>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Jun 18 18:31:46 root postfix/smtp[1766]: 897A713E12C7: host smtp-in.sfr.fr[93.17.128.123] refused to talk to me: 554 5.7.1 Client host rejected: cannot find your reverse hostname, [104.244.77.92]
    Jun 18 18:31:47 root postfix/smtp[1767]: 8C2F913E12C3: host front0.ok.de[5.9.24.8] said: 450 4.1.8 <nginx@root.gamerz.me>: Sender address rejected: Domain not found (in reply to RCPT TO command)
    Jun 18 18:31:47 root postfix/smtp[1766]: 897A713E12C7: host smtp-in.sfr.fr[93.17.128.25] refused to talk to me: 554 5.7.1 Client host rejected: cannot find your reverse hostname, [104.244.77.92]
    Jun 18 18:31:47 root postfix/smtp[1767]: 8C2F913E12C3: to=<patrick200582@ok.de>, relay=front2.ok.de[5.9.23.200]:25, delay=165132, delays=165131/0.01/0.57/0.04, dsn=4.1.8, status=deferred (host front2.ok.de[5.9.23.200] said: 450 4.1.8 <nginx@root.gamerz.me>: Sender address rejected: Domain not found (in reply to RCPT TO command))
    Jun 18 18:31:47 root postfix/smtp[1766]: 897A713E12C7: host smtp-in.sfr.fr[93.17.128.165] refused to talk to me: 554 5.7.1 Client host rejected: cannot find your reverse hostname, [104.244.77.92]
    Jun 18 18:31:47 root postfix/smtp[1766]: 897A713E12C7: to=<celine.henneville@sfr.fr>, relay=smtp-in.sfr.fr[93.17.128.16]:25, delay=169987, delays=169986/0.01/0.98/0, dsn=4.7.1, status=deferred (host smtp-in.sfr.fr[93.17.128.16] refused to talk to me: 554 5.7.1 Client host rejected: cannot find your reverse hostname, [104.244.77.92])
    
     
  8. Oxide

    Oxide Active Member

    503
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    5:36 PM
    [​IMG]
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    due to php segfault crashing php so nginx can't connect see good explanation at php - nginx errors "recv() failed (104: Connection reset by peer) while reading response header from upstream" - Server Fault

    as to postfix, you haven't properly configured your domain and server for PTR reverse lookups so some mailservers reject your emails. So talk with your web host or domain registrar/dns provider and get PTR reverse lookup properly set so main server IP address has PTR lookup to your main server hostname . Buyvm I know has in their Stallion control panel PTR option for you
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    As you're using Xenforo, might as well try upgrading from PHP 5.4 to 5.6.10 via centmin.sh menu option 5 with Zend Opcache enabled (answer yes when prompted). Could be PHP 5.4.40 and 5.4.42 that you're using.

    You on .07 stable or upgraded to .08 beta03 on both ?
     
  11. Oxide

    Oxide Active Member

    503
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    5:36 PM
    Yes, whoever I managed the server for removed APC and so far it hasn't been any errors.
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,155
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    5:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    hmmm might be time to change default from APC Cache to Zend Opcache