Hi everyone,
With DirectAdmin version 1.690, the new Isolated PHP-FPM mode was introduced. I find this feature very useful — it makes managing PHP per user and applying resource limits much easier.
However, I’ve run into a problem. I have two servers running with Isolated PHP-FPM enabled. On one of them, around 00:30 at midnight when DirectAdmin’s cron job executes, all my PHP-FPM isolated sockets suddenly disappear. This has happened for two nights in a row. I’m not yet certain if the DirectAdmin cron task is the cause.
I checked /var/log/messages to investigate, but so far I haven’t found any clear reason. The only way I’ve been able to quickly recover is by restarting the server, which restores the sockets in /var/run/php-fpm and brings all websites back online.
To help monitor this issue, I created a script:
PHP-FPM Isolated Socket Monitor -- https://github.com/Anasxrt/PHP-FPM-Isolated-Socket-Monitor
The script is designed to alert me if sockets disappear so I can check immediately. While I’m still searching for the root cause, perhaps this script could be useful to others facing the same issue.
Documentation reference:
DirectAdmin Docs – Per-user Isolated PHP-FPM for Jailed Environments -- https://docs.directadmin.com/webser...user-isolated-php-fpm-for-jailed-environments
Has anyone else experienced this problem? Any insights would be appreciated.
With DirectAdmin version 1.690, the new Isolated PHP-FPM mode was introduced. I find this feature very useful — it makes managing PHP per user and applying resource limits much easier.
However, I’ve run into a problem. I have two servers running with Isolated PHP-FPM enabled. On one of them, around 00:30 at midnight when DirectAdmin’s cron job executes, all my PHP-FPM isolated sockets suddenly disappear. This has happened for two nights in a row. I’m not yet certain if the DirectAdmin cron task is the cause.
I checked /var/log/messages to investigate, but so far I haven’t found any clear reason. The only way I’ve been able to quickly recover is by restarting the server, which restores the sockets in /var/run/php-fpm and brings all websites back online.
To help monitor this issue, I created a script:
The script is designed to alert me if sockets disappear so I can check immediately. While I’m still searching for the root cause, perhaps this script could be useful to others facing the same issue.
Documentation reference:
DirectAdmin Docs – Per-user Isolated PHP-FPM for Jailed Environments -- https://docs.directadmin.com/webser...user-isolated-php-fpm-for-jailed-environments
Has anyone else experienced this problem? Any insights would be appreciated.