To chmod only files or directories recursively, do the following:
For files:
find . -type f -exec chmod 644 {} ;
For directories
find . -type d -exec chmod 755 {};
To chmod only files or directories recursively, do the following:
For files:
find . -type f -exec chmod 644 {} ;
For directories
find . -type d -exec chmod 755 {};