Welcome to Centmin Mod Community
Register Now

Xenforo Nginx/PHP-FPM bailing on post based functions.

Discussion in 'Forum software usage' started by Bubka3, Jun 1, 2014.

  1. Bubka3

    Bubka3 New Member

    17
    5
    3
    Jun 1, 2014
    New York, NY
    Ratings:
    +5
    Local Time:
    6:57 PM
    1.7.1
    5.5.37
    So I've been having this issue for a long time now, but I ignored it because I just rebooted nginx/php-fpm and it went away, for a bit. Today, that didn't work!

    I'm running Xenforo 1.3.2, and it's just bailing on anything that works via post. For example, if you use More Options when editing a post, that will time out. Same with avatar uploads, template editing, etc.

    I don't know what to even attempt anymore. I've spent the entire day Googling (and most of the results involved overloaded servers, my load avg is 0.00). I've also spent a good 2 hours looking around the various logs (domain + system ones). It doesn't even show PHP timing upstream like I thought it would! I should mention the rest of the site is super quick and painless. I even tried recompiling both PHP and NGINX.


    Can anyone suggest anything? I'm fresh out of troubleshooting ideas.

    CentminMod v: 1.2.3-eva2000.06
    NGINX: 1.7.1
    PHP:
    Code:
    PHP 5.4.29 (cli) (built: May 31 2014 21:08:50)
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
        with the ionCube PHP Loader v4.5.3, Copyright (c) 2002-2014, by ionCube Ltd.
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,527
    12,211
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,780
    Local Time:
    9:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Well at one time in Centmin Mod's past I did enable PHP disable_functions as outlined at http://centminmod.com/nginx_configure_xenforo_seo_friendly_urls.html, but I eventually removed it as it caused more problems with folks not removing it for certain web scripts. So you could try that.

    How large are your forums post and thread count wise ? The other possible culprit could be MySQL related but I only provide Centmin Mod script as is and optimising your server isn't part of that. But I am sure other forum members and Centmin Mod users can also chime in.

    One thing you can do is install and setup mysqlmymonlite.sh outlined at http://community.centminmod.com/threads/mysqlmymonlite-sh-addon.65/ the read.txt file also has instructions on setting up cron jobs on hourly or finer grain interval to gather server and MySQL stats to text file which you can check and analyse. Slow MySQL queries can cause PHP-FPM to timeout and abort.

    Also check the Xenforo + Centmin Mod Nginx vhost examples some of us posted and compare to yours to make sure you haven't misconfigured anything http://community.centminmod.com/threads/my-xenforo-nginx-vhost-configuration.136/ :)

    HTH
     
  3. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    11:57 PM
    1.5.15
    MariaDB 10.2
    I've been running XenForo behind nginx / php-fpm for almost a year now, and this is something I've never personally experienced.

    Presuming because you have Ioncube installed, you don't have any form of opcaching installed?
     
  4. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    7:57 AM
    Mainline
    10.2
    Why not try Php 5.5.13 with ZenOPCahce?
     
  5. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    11:57 PM
    1.5.15
    MariaDB 10.2
    Might be a specific reason why ionCube is required (example the microcart add-on requires it)