still running OK? just done this now as I got another crash. it did install a couple more exts.
Still happening.
There is something mentioned by the Virtualmin guys on this link:
I think it’s related to what we are experiencing here
have changed the log rotate post command to match what is in that other post - will monitor again.
forced a rotate and nothing crashed so if that is to blame then that probably is the fix
following my last reply (forgot to do as a reply) the original command is a kill -9 … on post so wondering in the situation where you have more than one version of php this breaks.
ive got 7.4 and 8.0
nope. just had a crash overnight
Anyone still having this? Im up to date with the latest virtual min etc and still getting this. Driving me up the wall. Only 1 server im seeing this on all rest fine
I am still having this problem. I don’t know what starts the cascade failure, but when this happens, usually I can either restart the php service or re-submit the php-fpm settings page without changing anything, and it regenerates the session files/restarts php service.
However, today, I couldn’t get one of my php services to start. I investigated the error, and it stated it couldn’t find the sock file under “/run/php-fpm.” I checked, and I didn’t have a folder called /run/php-fpm, I had one under /var/run/php-fpm instead. So I created the folder “/run/php-fpm” and tried starting the php service, and it immediately started up.
Next, I listed both directories. To my surprise, both /var/run/php-fpm and /run/php-fpm have the EXACT same files, same modification time. Not sure how that is happening.
To try and figure out where the discrepancy is, I grepped against all php .conf files under conf.d and to my surprise, ALL of the configs are pointing towards /run/php-fpm. I also don’t know if this www.conf should be in here or not, as I still cannot start php8, which was the base php version on my system at setup. so it’s service is “php-fpm” whilst all other php services are phpXX-php-fpm, where “XX” is the version number of php.
[root@virtualmin2 ~]# grep “listen =” /etc/php-fpm.d/*.conf
/etc/php-fpm.d/160391720911117.conf:listen = /run/php-fpm/160391720911117.sock
/etc/php-fpm.d/1603975860884.conf:listen = /run/php-fpm/1603975860884.sock
/etc/php-fpm.d/16051162277682.conf:listen = /run/php-fpm/16051162277682.sock
/etc/php-fpm.d/160528493122689.conf:listen = /run/php-fpm/160528493122689.sock
/etc/php-fpm.d/161238848010818.conf:listen = /run/php-fpm/161238848010818.sock
/etc/php-fpm.d/161368242128201.conf:listen = /run/php-fpm/161368242128201.sock
/etc/php-fpm.d/16179133639753.conf:listen = /run/php-fpm/16179133639753.sock
/etc/php-fpm.d/162318580611114.conf:listen = /run/php-fpm/162318580611114.sock
/etc/php-fpm.d/164659273010351.conf:listen = /run/php-fpm/164659273010351.sock
/etc/php-fpm.d/164665964023103.conf:listen = /run/php-fpm/164665964023103.sock
/etc/php-fpm.d/166066957911894.conf:listen = /run/php-fpm/166066957911894.sock
/etc/php-fpm.d/16693319835680.conf:listen = /run/php-fpm/16693319835680.sock
/etc/php-fpm.d/167898825113832.conf:listen = /run/php-fpm/167898825113832.sock
/etc/php-fpm.d/16905720606813.conf:listen = /run/php-fpm/16905720606813.sock
/etc/php-fpm.d/170517455825125.conf:listen = /run/php-fpm/170517455825125.sock
/etc/php-fpm.d/17126924762090489.conf:listen = /run/php-fpm/17126924762090489.sock
/etc/php-fpm.d/1713270759212620.conf:listen = /run/php-fpm/1713270759212620.sock
/etc/php-fpm.d/1713664851929897.conf:listen = /run/php-fpm/1713664851929897.sock
/etc/php-fpm.d/1716156726460785.conf:listen = /run/php-fpm/1716156726460785.sock
/etc/php-fpm.d/171632440111006431.conf:listen = /run/php-fpm/171632440111006431.sock
/etc/php-fpm.d/171632441811006432.conf:listen = /run/php-fpm/171632441811006432.sock
/etc/php-fpm.d/www.conf:listen = /run/php-fpm/www.sock
[root@virtualmin2 ~]# systemctl status php*
● php83-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php83-php-fpm.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-10-23 07:18:17 CDT; 6h ago
Main PID: 178768 (php-fpm)
Status: “Processes active: 0, idle: 17, Requests: 0, slow: 0, Traffic: 0.00req/sec”
Tasks: 18 (limit: 151901)
Memory: 28.4M
CPU: 1.049s
CGroup: /system.slice/php83-php-fpm.service
├─178768 “php-fpm: master process (/etc/opt/remi/php83/php-fpm.conf)”
├─178769 “php-fpm: pool 168615560028755”
├─178770 “php-fpm: pool 168615560028755”
├─178771 “php-fpm: pool 169083582414563”
├─178772 “php-fpm: pool 169083582414563”
├─178773 “php-fpm: pool 169687065732535”
├─178774 “php-fpm: pool 169687065732535”
├─178775 “php-fpm: pool 1721649806126866”
├─178776 “php-fpm: pool 1721649806126866”
├─178777 “php-fpm: pool 1721668876255040”
├─178778 “php-fpm: pool 1721668876255040”
├─178779 “php-fpm: pool 1723729351806246”
├─178780 “php-fpm: pool 1723729351806246”
├─178781 “php-fpm: pool www”
├─178782 “php-fpm: pool www”
├─178783 “php-fpm: pool www”
├─178784 “php-fpm: pool www”
└─178785 “php-fpm: pool www”
Oct 23 07:18:17 virtualmin2 systemd[1]: Starting The PHP FastCGI Process Manager…
Oct 23 07:18:17 virtualmin2 systemd[1]: Started The PHP FastCGI Process Manager.
● php82-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php82-php-fpm.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-10-23 07:18:13 CDT; 6h ago
Main PID: 178525 (php-fpm)
Status: “Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0.00req/sec”
Tasks: 6 (limit: 151901)
Memory: 16.5M
CPU: 930ms
CGroup: /system.slice/php82-php-fpm.service
├─178525 “php-fpm: master process (/etc/opt/remi/php82/php-fpm.conf)”
├─178526 “php-fpm: pool www”
├─178527 “php-fpm: pool www”
├─178528 “php-fpm: pool www”
├─178529 “php-fpm: pool www”
└─178530 “php-fpm: pool www”
Oct 23 07:18:13 virtualmin2 systemd[1]: Starting The PHP FastCGI Process Manager…
Oct 23 07:18:13 virtualmin2 systemd[1]: Started The PHP FastCGI Process Manager.
● php81-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php81-php-fpm.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-10-23 07:18:01 CDT; 7h ago
Main PID: 178036 (php-fpm)
Status: “Processes active: 0, idle: 11, Requests: 4, slow: 0, Traffic: 0req/sec”
Tasks: 12 (limit: 151901)
Memory: 145.6M
CPU: 3.334s
CGroup: /system.slice/php81-php-fpm.service
├─178036 “php-fpm: master process (/etc/opt/remi/php81/php-fpm.conf)”
├─178037 “php-fpm: pool 160391283531169”
├─178038 “php-fpm: pool 160391283531169”
├─178039 “php-fpm: pool 17272952162734187”
├─178040 “php-fpm: pool 17272952162734187”
├─178041 “php-fpm: pool 17286029393104142”
├─178042 “php-fpm: pool 17286029393104142”
├─178043 “php-fpm: pool www”
├─178044 “php-fpm: pool www”
├─178045 “php-fpm: pool www”
├─178046 “php-fpm: pool www”
└─178047 “php-fpm: pool www”
Oct 23 07:18:01 virtualmin2 systemd[1]: Starting The PHP FastCGI Process Manager…
Oct 23 07:18:01 virtualmin2 systemd[1]: Started The PHP FastCGI Process Manager.
● php74-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php74-php-fpm.service; enabled; preset: disabled)
Active: active (running) since Wed 2024-10-23 07:42:04 CDT; 6h ago
Main PID: 198136 (php-fpm)
Status: “Processes active: 0, idle: 127, Requests: 79368, slow: 0, Traffic: 0req/sec”
Tasks: 128 (limit: 151901)
Memory: 12.0G
CPU: 13h 12min 55.853s
CGroup: /system.slice/php74-php-fpm.service
├─198136 “php-fpm: master process (/etc/opt/remi/php74/php-fpm.conf)”
├─198141 “php-fpm: pool 160218458726577”
├─198142 “php-fpm: pool 160218458726577”
├─198143 “php-fpm: pool 160391489130987”
├─198144 “php-fpm: pool 160391489130987”
├─198145 “php-fpm: pool 160391720911117”
├─198146 “php-fpm: pool 160391720911117”
├─198147 “php-fpm: pool 1603975860884”
├─198148 “php-fpm: pool 1603975860884”
├─198149 “php-fpm: pool 16039846045615”
├─198150 “php-fpm: pool 16039846045615”
├─198151 “php-fpm: pool 160398514018742”
├─198152 “php-fpm: pool 160398514018742”
├─198153 “php-fpm: pool 160511554024357”
├─198154 “php-fpm: pool 160511554024357”
├─198157 “php-fpm: pool 160519872316670”
├─198158 “php-fpm: pool 160528493122689”
├─198159 “php-fpm: pool 160528493122689”
├─198160 “php-fpm: pool 160631969522797”
├─198161 “php-fpm: pool 160631969522797”
├─198162 “php-fpm: pool 161238848010818”
├─198163 “php-fpm: pool 161238848010818”
├─198165 “php-fpm: pool 161368242128201”
├─198166 “php-fpm: pool 161368242128201”
├─198169 “php-fpm: pool 164625328711719”
├─198170 “php-fpm: pool 164625328711719”
├─198171 “php-fpm: pool 164659273010351”
├─198172 “php-fpm: pool 164659273010351”
├─198173 “php-fpm: pool 164665964023103”
├─198174 “php-fpm: pool 164665964023103”
├─198176 “php-fpm: pool 165099322713101”
├─198177 “php-fpm: pool 165099322713101”
├─198178 “php-fpm: pool 166066957911894”
├─198179 “php-fpm: pool 166066957911894”
├─198185 “php-fpm: pool 169497942432002”
├─198186 “php-fpm: pool 169497942432002”
├─198187 “php-fpm: pool 169686624417794”
├─198188 “php-fpm: pool 169686624417794”
├─198189 “php-fpm: pool 17126820192032000”
├─198190 “php-fpm: pool 17126820192032000”
├─198191 “php-fpm: pool 17126924762090489”
├─198192 “php-fpm: pool 17126924762090489”
├─198193 “php-fpm: pool 17163242331100643”
├─198194 “php-fpm: pool 17163242331100643”
├─198195 “php-fpm: pool 1718647691945634”
├─198196 “php-fpm: pool 1718647691945634”
├─198197 “php-fpm: pool www”
├─198198 “php-fpm: pool www”
├─198199 “php-fpm: pool www”
├─198200 “php-fpm: pool www”
├─198201 “php-fpm: pool www”
├─198337 “php-fpm: pool 164665964023103”
├─198924 “php-fpm: pool 160519872316670”
├─199035 “php-fpm: pool 160519872316670”
├─199085 “php-fpm: pool 160519872316670”
├─199086 “php-fpm: pool 165099322713101”
├─199094 “php-fpm: pool 165099322713101”
├─199260 “php-fpm: pool 16179133639753”
├─199978 “php-fpm: pool 16179133639753”
├─200675 “php-fpm: pool 164659273010351”
├─201802 “php-fpm: pool 166066957911894”
├─202122 “php-fpm: pool 169686624417794”
├─202208 “php-fpm: pool 160391489130987”
├─203370 “php-fpm: pool 160528493122689”
├─203776 “php-fpm: pool 165099322713101”
├─204773 “php-fpm: pool 16179133639753”
├─204962 “php-fpm: pool 161238848010818”
├─205141 “php-fpm: pool 160218458726577”
├─208625 “php-fpm: pool 160519872316670”
├─208631 “php-fpm: pool 160519872316670”
├─208860 “php-fpm: pool 160519872316670”
├─209516 “php-fpm: pool 160391720911117”
├─209634 “php-fpm: pool 1603975860884”
├─211244 “php-fpm: pool 16830373562779”
├─213014 “php-fpm: pool 169686624417794”
├─213906 “php-fpm: pool 16039846045615”
├─217616 “php-fpm: pool 160391720911117”
├─217620 “php-fpm: pool 160391720911117”
├─219724 “php-fpm: pool 160528493122689”
├─220293 “php-fpm: pool 160631969522797”
├─220884 “php-fpm: pool 17126924762090489”
├─221250 “php-fpm: pool 161368242128201”
├─226597 “php-fpm: pool 169686624417794”
├─226602 “php-fpm: pool 169686624417794”
├─226604 “php-fpm: pool 169686624417794”
├─229030 “php-fpm: pool 15973409295863”
├─229642 “php-fpm: pool 160398514018742”
├─232769 “php-fpm: pool 16179133639753”
├─233178 “php-fpm: pool 16179133639753”
├─240141 “php-fpm: pool 16179133639753”
├─241811 “php-fpm: pool 16179133639753”
├─241816 “php-fpm: pool 16179133639753”
├─247980 “php-fpm: pool 15973409295863”
├─252885 “php-fpm: pool 161238848010818”
├─257245 “php-fpm: pool 17163242331100643”
├─258363 “php-fpm: pool 164659273010351”
├─274869 “php-fpm: pool 160391489130987”
├─276144 “php-fpm: pool 15973409295863”
├─280830 “php-fpm: pool 161368242128201”
├─287243 “php-fpm: pool 165099322713101”
├─291376 “php-fpm: pool 165099322713101”
├─296059 “php-fpm: pool 15973409295863”
├─296061 “php-fpm: pool 15973409295863”
├─296064 “php-fpm: pool 15973409295863”
├─296069 “php-fpm: pool 15973409295863”
├─296073 “php-fpm: pool 15973409295863”
├─302650 “php-fpm: pool 16830373562779”
├─302652 “php-fpm: pool 16830373562779”
├─302660 “php-fpm: pool 16830373562779”
├─337224 “php-fpm: pool 160631969522797”
├─353036 “php-fpm: pool 166067281228849”
├─353041 “php-fpm: pool 166067281228849”
├─353044 “php-fpm: pool 166067281228849”
├─359856 “php-fpm: pool 161238848010818”
├─359864 “php-fpm: pool 161238848010818”
├─361965 “php-fpm: pool 166067281228849”
├─361976 “php-fpm: pool 166067281228849”
├─361981 “php-fpm: pool 166067281228849”
├─361987 “php-fpm: pool 166067281228849”
├─361993 “php-fpm: pool 166067281228849”
├─364359 “php-fpm: pool 160218458726577”
├─383635 “php-fpm: pool 169497942432002”
├─386287 “php-fpm: pool 165099322713101”
├─392202 “php-fpm: pool 16830373562779”
├─392209 “php-fpm: pool 16830373562779”
├─392213 “php-fpm: pool 16830373562779”
├─392320 “php-fpm: pool 16830373562779”
└─392457 “php-fpm: pool 160519872316670”
Oct 23 07:42:04 virtualmin2 systemd[1]: Starting The PHP FastCGI Process Manager…
Oct 23 07:42:04 virtualmin2 systemd[1]: Started The PHP FastCGI Process Manager.
× php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2024-10-23 13:53:58 CDT; 24min ago
Duration: 14min 30.771s
Process: 412265 ExecStart=/usr/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 412265 (code=exited, status=78)
CPU: 52ms
Oct 23 13:53:58 virtualmin2 systemd[1]: Starting The PHP FastCGI Process Manager…
Oct 23 13:53:58 virtualmin2 php-fpm[412265]: [23-Oct-2024 13:53:58] ERROR: Another FPM instance seems to already listen on /run/php-fpm/160391720911117.sock
Oct 23 13:53:58 virtualmin2 php-fpm[412265]: [23-Oct-2024 13:53:58] ERROR: FPM initialization failed
Oct 23 13:53:58 virtualmin2 systemd[1]: php-fpm.service: Main process exited, code=exited, status=78/CONFIG
Oct 23 13:53:58 virtualmin2 systemd[1]: php-fpm.service: Failed with result ‘exit-code’.
Oct 23 13:53:58 virtualmin2 systemd[1]: Failed to start The PHP FastCGI Process Manager.
-----UPDATE------
I went to go list /run/php-fpm, and to my surprise again, (im getting surprised a lot now) THE DIRECTORY IS JUST GONE!!! I simply created it again “mkdir /run/php-fpm” and mass restarted ALL my php services and they started up with no problems.
Why is this folder getting deleted, especially if configurations are pointing to it??
(I followed the virtualmin guide for installing multiple versions of PHP.)
The same thing happens when I try this for php version 8, but this is because when I set my system up, php8 was the default version. it isn’t listed as php80-php-fpm.service, it is listed as php-fpm.service.
all additional php versions installed via remi repository have their versions in the name, except for php8 specifically. Your system likely is in the same boat as mine.
I was having problems with 8.2, the release of 8.3 has meant no more problems.
as a random observation, maybe not on point … on some of my RedHat systems, /var/run
is symlinked to /run
… that is, /run
is the real directory with /var/run
pointing to it
I have the same issue. do we have any ideas how to fix?
So your directory is dissappear also ? Or can you not get php to start for other reasons ? Check the status of your php service(s) and post the information back
Nope I have no issues, these setting reduce ram usage. I set this in the template.
Once in template you can turn off then turn on PHP on each virtual server to add the setting.
This also reduce the large list of php-fpm: pool’s
My OS is AlmaLinux 9 with Virtualmin Pro, and I’m also having issues with PHP-FPM pools. This has happened with both PHP 8.2 and 7.4, and it doesn’t matter if the configuration is set to “ondemand” or “dynamic.”
Everything seems to be related to the path where the pool socket is created. Virtualmin used to create the old ones in /var/php-fpm
, but now it creates them in /run/php-fpm
. In the first case, I never had any issues, but in the second, some socket files disappear, and the associated web server stops responding. However, if I check the pool status with systemctl status php*-php-fpm
, I can see that it’s running in memory.
Restarting PHP-FPM makes the website respond again, but after some time, the same issue occurs.
I haven’t been able to figure out why the socket disappears, and I’ve only managed to solve it by changing the socket path from /run/php-fpm
to /var/php-fpm
in both the pool configuration and Apache’s settings.
Can anyone else reproduce this behavior? (Moving back to /var
fixing the problem.)
This shouldn’t make a difference, /run
is the place for ephemeral sockets like this to exist in a Linux system with systemd. So, it’s surprising that it seems to fix it for you. I can’t figure out why it would.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.