Hi, and thank you for your reply!
The output of audit2why is
type=AVC msg=audit(1748594013.719:3750): avc: denied { connectto } for pid=5750 comm="php-fpm" path="/var/lib/mysql/mysql.sock" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_stream_socket permissive=1
Was caused by:
Missing type enforcement (TE) allow rule.
You can use audit2allow to generate a loadable module to allow this access.
The journalctl got a more humane message from someone. Interesting.
Anyway, the output of audit2allow (without “create module” option) will be text too, rules.