How to change permissions of WordPress and/or apache on macOS securely?

How to change permissions of WordPress and/or apache on macOS securely?