Another good discussion (about Caddy, but you’ll get a good understanding what FreePBX needs from the webserver)