Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tobz.nz's avatar

I just installed php7.4 on a forge server and now getting 502's

I just installed php7.4 alongside 7.3 on a forge server and now getting 502's on all sites.

Trying to restart php-fpm fails for both versions.

Not sure where to go from here - help!!!

0 likes
3 replies
tobz.nz's avatar

Logs

[15-Jul-2020 03:33:49] NOTICE: fpm is running, pid 18588
[15-Jul-2020 03:33:49] NOTICE: ready to handle connections
[15-Jul-2020 03:33:49] NOTICE: systemd monitor interval set to 10000ms
[15-Jul-2020 03:33:59] NOTICE: Reloading in progress ...
[15-Jul-2020 03:33:59] NOTICE: reloading: execvp("/usr/sbin/php-fpm7.4", {"/usr/sbin/php-fpm7.4", "--nodaemonize", "--fpm-config", "/etc/php/7.4/fpm/php-fpm.conf"})
[15-Jul-2020 03:33:59] NOTICE: using inherited socket fd=7, "/run/php/php7.4-fpm.sock"
[15-Jul-2020 03:33:59] NOTICE: using inherited socket fd=7, "/run/php/php7.4-fpm.sock"
[15-Jul-2020 03:33:59] NOTICE: fpm is running, pid 18588
[15-Jul-2020 03:33:59] NOTICE: ready to handle connections
[15-Jul-2020 03:33:59] NOTICE: systemd monitor interval set to 10000ms
[15-Jul-2020 03:34:04] NOTICE: Terminating ...
[15-Jul-2020 03:34:04] NOTICE: exiting, bye-bye!
[15-Jul-2020 03:34:05] NOTICE: fpm is running, pid 19595
[15-Jul-2020 03:34:05] NOTICE: ready to handle connections
[15-Jul-2020 03:34:05] NOTICE: systemd monitor interval set to 10000ms
[15-Jul-2020 03:34:09] NOTICE: Terminating ...
[15-Jul-2020 03:34:09] NOTICE: exiting, bye-bye!
[15-Jul-2020 03:34:09] NOTICE: fpm is running, pid 19983
[15-Jul-2020 03:34:09] NOTICE: ready to handle connections
[15-Jul-2020 03:34:09] NOTICE: systemd monitor interval set to 10000ms
[15-Jul-2020 03:35:29] NOTICE: Terminating ...
[15-Jul-2020 03:35:29] NOTICE: exiting, bye-bye!
tobz.nz's avatar
systemctl status php7.3-fpm.service
- php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.3-fpm.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2020-07-15 03:54:13 UTC; 2min 11s ago
     Docs: man:php-fpm7.3(8)
  Process: 25867 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
  Process: 25850 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf (code=exited, status=254)
 Main PID: 25850 (code=exited, status=254)
tobz.nz's avatar
tobz.nz
OP
Best Answer
Level 3

So I manually upgraded php and that seems to have fixed it all. Now I'm not going to touch it anymore today because It's one of those days and I don't want to tempt fate. And its 4pm.

Please or to participate in this conversation.