[BlueOnyx:27356] 5210R/5211R: YUM updates released (PHP-FPM + Postfix)

Michael Stauber mstauber at blueonyx.it
Sun Nov 24 22:25:35 -05 2024


Hi all,

YUM updates that change the handling of PHP-FPM have been released.

HTML version of this message:

https://www.blueonyx.it/news/347/103/BlueOnyx-5210R5211R-YUM-updates-released/

First of let me start with saying that I don't like to release YUM 
updates that change existing behavior. However: In this case (PHP-FPM) 
it is for the better.


PHP-FPM handling change:
=========================

TL;DR: PHP-FPM now uses Unix-Sockets instead of TCP sockets

Longer explanation:

Until today the PHP-FPM implementation on BlueOnyx 5210R/5211R used 
TCP/IP via 127.0.0.1:<random-port> for the communication between Apache 
and the PHP-FPM pools of Vsites.

However, this turned out to be more hassle than it was worth. On servers 
with many Vsites with PHP-FPM even our tweaked and optimized routine for 
finding free ports was not working reliable enough. It worked most of 
the time, but the few cases where it didn't left users without immediate 
remedy. That's not good enough and we can do better.

We just published updated base-apache-* and base-subdomain-* RPMs for 
BlueOnyx 5210R/5211R which switch PHP-FPM over to Unix sockets. Means: 
If PHP-FPM is enabled for a Vsite, then it no longer needs a free TCP 
port for that. Instead a Unix socket is created under 
/home/sites/<FQDN>/wwwroot/<siteX>.sock and that is then used for the 
same purpose. This is also slightly (barely noticeable) faster, as the 
communication doesn't have to take a round-trip through the TCP/IP stack.

When you get the YUM updates, existing Vsites with PHP-FPM enabled will 
still use the "old" style configuration until the next time that you 
save the PHP settings for them.

If you want to convert all Vsites to the new style after the YUM update 
you can run this command as "root" from the shell:

/usr/sausalito/sbin/phptoggle.pl -fpm

That will walk through all Vsites that have PHP-FPM enabled and will 
update the PHP settings of them, forcing an immediate conversion.


BlueOnyx 5210R: Postfix update:
===============================

A new blueonyx-postfix RPM has been released for BlueOnyx 5210R. This 
combines the latest "upstream" Postfix of AlmaLinux 8.10 with our custom 
Sendmail-to-Postfix conversion script.

On 5211R this update is neither needed nor provided, as we used the 
"upstream" Postfix from the OS and just modify the configuration and 
Systemd Unit-File of Postfix accordingly.

-- 
With best regards

Michael Stauber


More information about the Blueonyx mailing list