Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM Strange PHP-FPM problem after PHP rebuild

Discussion in 'Install & Upgrades or Pre-Install Questions' started by wmtech, Aug 24, 2024.

  1. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:33 PM
    We have a website with an old XenForo 1 installation with Centminmod 130.00beta01 at a dedicated Rocky 8.10 server (only Centminmod with Nginx 1.25.4 and PHP-FPMD 7.2.34 running beside Redis and Memcached). That setup runs smoothly without problems since years with occasional updates for Nginx and recompile of PHP 7.2.34 using Centminmod.

    Last week we decided to upgrade the server to Centminmod 140.00beta01 which could be done without any problems. We also upgraded Nginx to 1.27.1, also without any problems.

    But after we recompiled PHP 7.2.34 (the same version we used since many years) to catch any new patches (we did that without any problems several times before), the server began to make weird things. It started to raise CPU usage exponentially until the server breaks down. After a restart of the server we recognised that some (not all) XenForo thread and gallery pages could not finish to be shown at the visitors browser and timed out at PHP-FPM with one of the the following 2 errors:

    Code (Text):
    Maximum execution time of 60 seconds exceeded in /library/XenForo/Template/Abstract.php on line 366
    


    Code (Text):
    Maximum execution time of 60 seconds exceeded in /library/XenForo/Helper/String.php on line 519
    


    Some thread and gallery pages show without delay and some of them end with that error. The server builds up load until the CPU gets overwhelmed and the server crashes.

    We tried to find the bug without any success. We tried to upgrade PHP 7.2.34 to PHP 7.3.33 but the problem persists with exactly the same behaviour.

    Only a downgrade to PHP 7.1.33 solved the problem and Xenforo runs without problems again.

    We could not find the exact reason for our problems. It seems that the recompile of PHP 7.2.34 under Centminmod 140.00beta01 introduced some kind of incompatibility with XenForo 1. Perhaps an updated module or a newly introduced patch? Because the upgrade to PHP 7.3.33 did not solve the issue whereas the downgrade to PHP 7.1.33 does the incompatible module or patch seems to be applied to PHP 7.2 upwards only.

    Does anyone has any clue or a tip what the problem could have been?
    @eva2000 perhaps?

    Thanks for any help.


    The relevant custom config vars for our installation, all the installed PHP modules are Centminmod standard:

    Code (Text):
    PHP_PGO='y'
    MARCH_TARGETNATIVE='n'
    PHPFINFO='y'
    
     
    Last edited: Aug 24, 2024
  2. eva2000

    eva2000 Administrator Staff Member

    53,246
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    8:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    12:33 PM
    Thank you. I'll try that within the next maintenance window and report if successful.