I have to change the permissions of the htdocs directory in apache to a certain group and with certain read/write/execute.
htdocs
The directories need to have 775
Use find to search for directories and apply chmod on them:
find
find -type d | xargs chmod 775
Use type f for file:
f
find -type f | xargs chmod 775