Tag Archives: chmod

How to do a recursive chmod all PHP files in a site or folder

If you want to do a recursive chmod on a set of files below a given directory or folder using the bash shell you can do the following: find . -type f -name ‘*.php’ -exec chmod 644 {} \; This command can be easily adapted to work for other file types or modes. The ‘.’ [...]