Comment to 'Many Pages not loading anymore when accessed as a Guest - UNA 13.1.0-RC1'
  • Hi y'all,

    I truly apologize for the late reply due to personal reasons.

    @LeonidS and @Alex T⚜️, please help as I am completely lost with this issue.

    Dear LeonidS, as per your suggestion I tried to add the following line in my PHP-FPM configuration file:

    request_terminate_timeout = 300s

    Unfortunately, it didn’t work.

    I have tried it without success in both PHP-FPM Configuration file globally and on a per-php version basis:

    /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml

    /opt/cpanel/ea-php82/root/etc/php-fpm.conf

    When I tried to rebuild the PHP-FPM configuration file and to restart the PHP-FPM service for Apache, it gave me the following message:

    Error: unknown entry 'request_terminate_timeout'
    Service Error
    (XID jm79b8) The “apache_php_fpm” service failed to restart because the restart script exited with an error.

    I think that it’s due to the fact that the 'request_terminate_timeout parameter is meant for Nginx, not for Apache, right? Please correct me if I am wrong.

    I am running Apache on Linux CentOs 7 (Dedicated server). PHP 8.2

    Then I contacted my Web Hosting provider to add the request_terminate_timeout = 300s line in my PHP-FPM configuration file. Instead, they went to my WHM > MultiPHP Manager > System Php-FPM settings (even in a user domain settings) and increased the value of PHP-FPM Pool options:

    Max Children to 50 (Default is: 5)
    Process Idle Timeout to 300 (Default is: 10)

    Unfortunately, that didn’t fix my problem.

    I have even tried to increase the Max Requests In the same PHP-FPM Pool options.

    Max Requests to 100 (Default is: 20)

    But the problem still occurs, So I reset all the PHP-FPM Pool options to their default value.

    I have requested my Web Hosting Provider to investigate the problem. My case was escalated to Level 2, then Level 3 Support (Linux System Administrators/Experts)

    They all keep on blaming UNA for non-optimized code as UNA is hitting server resources limit. That results in the failure of the server (Server overload and crashes: 500 Internal Server error, 504 Gateway Timeout error etc.) Sometimes, the server even fails to load the cPanel and the WHM page. What was found is: UNA creates long running php processes and has a high CPU and Memory usage.

    Sometimes, I get something like:

    CPU Usage: 116.4% (warning)
    MEM Usage: 42.2% (warning)
    Processes: 25 (warning)

    That’s insane!

    The Level 2 and Level 3 Support Administrators of my Web Hosting Provider suggested me to contact the script vendor/developer for code analysis and optimization.

    I have few UNA installations on the server (about 5 or 6 of them). Most of them are my test/dev sites with no members, no traffic. I just can’t understand how and why they do cause excessive server resource usage. The weird part is that it’s on a Dedicated server.

    As I have already mentioned in my original post above, some of my pages are failing to load, resulting in errors like:

    • This page can't be reached
    • This page isn’t working... unable to handle this request.HTTP ERROR 500
    • 504 Gateway Timeout error etc

    I have these errors on pages like:

    www.site[dot]com/view-persons-profile/xxxxxx

    www.site[dot]com/persons-home 

    www.site[dot]com/organizations-home 

    This problem only occurs when someone visits those pages as a guest (Unauthenticated user). When logged in, there is no problem at all. They work and load just normally.

    By the way, I have started to notice this issue after updating all my sites to UNA 13.1.0-RC1. Before that, everything was working fine. I don’t know whether some new stuffs were introduced to this release causing those pages to fail to load (crash) when not logged in.

    Please help!

    Thanks