| SYSTEM INFORMATION | |
|---|---|
| OS type and version | RedHat 9 |
| Webmin version | 2.402 |
| Virtualmin version | 7.30.8 |
| Webserver version | apache 2.4.62 |
am just starting to migrate some virtual servers from RedHat7 to RedHat9 – while keeping others on another server running RedHat8
and am seeing something that has taken me awhile to diagnose – if I have even found the actual issue ![]()
I have used the REMI repos and have php versions 7.4, 8.0, 8.1, 8.2, 8.3 and 8.4 available — initially all is working well as I do a Virtualmin Backup, copy and then Restore to move sites from the RHEL7 server to RHEL9. Note on my new server the default php is 8.1.
then I started seeing random issues when just after a restore, other sites would stop processing php files/connections.
I forget offhand if Virtualmin lets me configure this, but it seems that all versions of php put their .sock files in /run/php-fpm/ – both on my older systems and the new RHEL9 server.
but when the php-fpm master process for 8.1 is restarted (again its the base/default version), such as during a restore of a RHEL7 server that uses 8.1, I think what happens is – EVERYTHING in /run/php-fpm/ gets deleted, not just any .sock files for 8.1 – in fact the directory /run/php-fpm/ also is deleted !! If I restart php74 or 80/82/83/84, those specific .sock files to get recreated.
it does appear that when stopping 8.4, only 8.4 .sock files are removed from /run/, leaving the others in place for the other php versions.
I have not looked yet for a configurable item, but did notice the configuration file for the default instance/stanza www.conf has its .sock file in a version specific location, such as /var/opt/remi/php84/run/php-fpm/www.sock
so I am torn between seeing how to use the version specific /run/ directory and trying to figure out what fundamental change occurred, perhaps in the systemd control file for php-fpm, between RHEL8 and RHEL9. I did find some google search references to what may be a new systemd service that is named php-fpm.socket, but have not found anything as to how to install it on my RHEL9 server, or if that would help at all.
I have cloned my production RHEL9 server to a test server so I can tinker with this all day long and not have an impact on my clients.
[ time passes ]
OMG – I have to make this quick edit before its too late for an edit update – maybe my older systems that started with much older releases of Virtualmin, have continued to use tcp ports and thus I never have had any experience with .sock files until RHEL9 and the newest Virtualmin ?? Perhaps this “issue” has been around for a long time but I never had the specific configuration to bring it to my attention !!
Please share your thoughts and advice, especially if my thinking and analysis is flawed !!