Discover Centmin Mod today
Register Now

Downgrading PHP results in 502 Bad Gateway

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Jon Snow, Nov 20, 2024.

  1. Jon Snow

    Jon Snow Active Member

    814
    164
    43
    Jun 30, 2017
    Ratings:
    +241
    Local Time:
    10:45 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Please fill in any relevant information that applies to you:
    • CentOS Version: AlmaLinux 9 ?
    • Centmin Mod Version Installed: 131.00stable or 140.00beta01.
    • Nginx Version Installed: 1.27.2
    • PHP Version Installed: 8.2.x (latest)
    • MariaDB MySQL Version Installed: 10.6.xx.
    • When was last time updated Centmin Mod code base ?: today
    • Persistent Config:
      Code (Text):
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      MARCH_TARGETNATIVE='n'
      DISABLE_IPVSIX='y'
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      SELFSIGNEDSSL_ECDSA='y'
      PHPFINFO='n'
      PYTHON_INSTALL_ALTERNATIVES='y'
    Is anyone else experiencing this?


    The server was built on PHP 8.2 and was working fine, but downgrading to PHP 8.0 caused 502 Bad Gateway white page errors.

    Reverting back to 8.2 and even upgrading to 8.3 resolved the issue.

    The reason why I want to revert to 8.0 is because Elementor is stuck on the loading screen. It doesn't look like I'm the only person experiencing this issue because a Reddit poster claimed that downgrading to 8.0 resolved this issue for them. So I wanted to try it.

    I've already tried resaving permalinks, disabling PHPFINFO through custom config, drastically increasing the WP memory limit, and my vhost has try_files $uri $uri/ /index.php?q=$uri&$args; in the location context.

    Top doesn't show high CPU usage and no relevant errors in the PHP error log.

    I've tried changing Elementor themes and disabling all plugins except for Elementor, but no dice. I haven't tried rolling far back to a previous Elementor version because the latest update is a security release.
     
  2. Jon Snow

    Jon Snow Active Member

    814
    164
    43
    Jun 30, 2017
    Ratings:
    +241
    Local Time:
    10:45 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    When I built the server, this was also in my custom config btw:

    Code (Text):
    PHP_PGO_ALWAYS='y'
    PHP_PGO='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    NGINX_ZERODT='y'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    AUDITD_ENABLE='y'
    PHP_OVERWRITECONF='n'

    But I removed it and rebuilt nginx/php-fpm to test.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,126
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    12:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what if you disable these 2

    Code (Text):
    PHP_PGO_ALWAYS='n'
    PHP_PGO='n'
    
     
  4. Jon Snow

    Jon Snow Active Member

    814
    164
    43
    Jun 30, 2017
    Ratings:
    +241
    Local Time:
    10:45 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Just added those and recompiled php-fpm but didn't work :(

    I'm upgrading back to 8.3 now
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,126
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    12:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Jon Snow

    Jon Snow Active Member

    814
    164
    43
    Jun 30, 2017
    Ratings:
    +241
    Local Time:
    10:45 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    I don't really have a need to anymore. I found the bug in Elementor Pro that's affecting people right now so I just disabled the feature (FontAwesome Pro)

    But I think the logs would have recorded it already so I can maybe search for it?