Chmod-ing a whole directory recursively is usually not a good idea. Directories should be executable when serving them via http but the documents should not. Here’s a set of commands from the Mercurial book to help separate chmod-ing of directories and files:
$ chmod 755 ~ $ find ~/public_html -type d -print0 | xargs -0r chmod 755 $ find ~/public_html -type f -print0 | xargs -0r chmod 644
From Mike Olson, a much clearer and more concise alternative to the above:
chmod -R u+rwX,go+rX ~/public_html
- None Found