I tried doing this manually.
I can’t connect to Firebird from within php-fpm.
% /opt/homebrew/opt/php/sbin/php-fpm --nodaemonize --fpm-config /opt/homebrew/etc/php/8.5/php-fpm.conf
[23-Jul-2026 03:32:54] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[23-Jul-2026 03:32:54] NOTICE: [pool www] 'group' directive is ignored when FPM is not running as root
[23-Jul-2026 03:32:54] NOTICE: fpm is running, pid 54163
[23-Jul-2026 03:32:54] NOTICE: ready to handle connections
[23-Jul-2026 03:33:05] WARNING: [pool www] child 54164 exited on signal 11 (SIGSEGV) after 10.578921 seconds from start
[23-Jul-2026 03:33:05] NOTICE: [pool www] child 54167 started
% sudo /opt/homebrew/opt/php/sbin/php-fpm --nodaemonize --fpm-config /opt/homebrew/etc/php/8.5/php-fpm.conf
[23-Jul-2026 03:33:54] NOTICE: fpm is running, pid 54172
[23-Jul-2026 03:33:54] NOTICE: ready to handle connections
[23-Jul-2026 03:33:56] WARNING: [pool www] child 54173 exited on signal 9 (SIGKILL) after 2.885893 seconds from start
[23-Jul-2026 03:33:56] NOTICE: [pool www] child 54175 started
But if you use "php-cgi -b ...", it works.