Directadmin newest update keeps restarting my php-fpm versions

kulabi

Verified User
Joined
Jul 27, 2022
Messages
7
I have a very weird problem that I cannot seem to figure out. I have PHP-FPM running on my CentOS 7 webserver. After I have updated via custombuild to the newest version 1.642, I have some really strange issues with PHP-FPM. I had installed version 7.4 and 7.0 but after the update 7.4 kept restarting for no apparent reason. So I had switched all my users over to 7.0 because that service doesn't restart.

At the moment I run 7.0 without any issues.

I tried re-installing PHP-FPM 7.1, 7.2, 7.3 and 7.4 but they all cannot run for more than 2-3 minutes or so before they just stop, and then restart. I have all my users run on 7.0, so nothing actually uses the 7.1 and up but it still just stops after a minute or 2-3. The logs aren't giving much answers:
[19-Aug-2022 18:14:26] NOTICE: fpm is running, pid 12746
[19-Aug-2022 18:14:26] NOTICE: ready to handle connections
[19-Aug-2022 18:15:56] NOTICE: Terminating ...
[19-Aug-2022 18:15:56] NOTICE: exiting, bye-bye!
[19-Aug-2022 18:16:01] NOTICE: fpm is running, pid 12894
[19-Aug-2022 18:16:01] NOTICE: ready to handle connections
[19-Aug-2022 18:17:31] NOTICE: Terminating ...
[19-Aug-2022 18:17:31] NOTICE: exiting, bye-bye!
[19-Aug-2022 19:21:18] NOTICE: fpm is running, pid 25122
[19-Aug-2022 19:21:18] NOTICE: ready to handle connections
[22-Aug-2022 16:13:47] NOTICE: fpm is running, pid 403
[22-Aug-2022 16:13:47] NOTICE: ready to handle connections
[22-Aug-2022 16:15:15] NOTICE: Terminating ...
[22-Aug-2022 16:15:15] NOTICE: exiting, bye-bye!

So i'm pulling hairs in what is going wrong. Nothing is actively using the PHP-FPM 7.1 and up, but they all do the same thing, run for a minute, sometimes 2 minutes, and then they terminate and restart. Does anyone else has this issue?

The logs aren't also really helpful, and the fact that nothing actively uses the service makes me think this is a configuration bug rather than an actual php code execution problem.
 
I guess the issue is caused by the missing "--with-fpm-systemd" option in "./configure". That's the custombuild's related bug, I'd rather say.

Run and check:

Code:
php-config --configure-options

You might copy a file /usr/local/directadmin/custombuild/configure/php/configure.phpXX to /usr/local/directadmin/custombuild/custom/php/configure.phpXX and update its content (as shown below, it's a part of the file only):

Code:
...
        --enable-fpm \
        --with-fpm-systemd \
        --with-litespeed \
...

and then rebuild PHP.
 
I’d suggest checking file mirror used for downloads. Users reported that unofficial mirror files6 has the line missing.
 
I’d suggest checking file mirror used for downloads. Users reported that unofficial mirror files6 has the line missing.
How can I check the file mirror used for downloads? And/or where can I change it?

Sorry for the question, but I'm a beginner in this, just trying to learn!
 
centos updated? da too? try rebuild php and webserver (nginx or what you are using)
 
centos updated? da too? try rebuild php and webserver (nginx or what you are using)
Yes I updated DA, how can I rebuild PHP (I updated all the PHP versions to the latest ones, but I think I need to rebuild it to fix the issue?) Or is it fixed when I just update to the latest one with the updated Directadmin en Custombuild with the new download location?

EDIT: I think i found it myself. I just have to use ./build php
 
Last edited:
Back
Top