Join the community today
Become a Member

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:
    1:01 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

    30,955
    6,917
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,417
    Local Time:
    4:01 AM
    Nginx 1.13.x
    MariaDB 5.5
    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 Moderator Staff Member

    697
    322
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +449
    Local Time:
    6:01 PM
    1.7.1
    MariaDB 10
    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. RoldanLT

    RoldanLT Well-Known Member

    3,978
    965
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,329
    Local Time:
    2:01 AM
    1.11
    10.2
    Why not try Php 5.5.13 with ZenOPCahce?
     
  5. Matt

    Matt Moderator Staff Member

    697
    322
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +449
    Local Time:
    6:01 PM
    1.7.1
    MariaDB 10
    Might be a specific reason why ionCube is required (example the microcart add-on requires it)
     
    • Like Like x 1