FreePBX is a VERY complicated “Stack” of services/components to get installed correctly - Hence Dicko’s suggestion to use the Distro - I also have tried (in the distant past) to get it working on a scratch install of CentOS - I think it was 11 or 12 - I got it working, but so many things are just baked into the distro that it was not worth it (to me at least) to run it that way.
Having said that, Sangoma/Digium (one and the same now…) is a well-established offering with commercial alternatives - you are setting a high bar for yourself if you have never used it before to get it running “naked”.
It’s possible, just really not easy.