Recursively update file permissions

You may have a site with incorrect permissions for a number of reasons...

Here is how to fix permissions so your site is more secure.



Recursively change permissions on all files:

  1. Navigate to your public_html folder
  2. Run the following: find . -type d -exec chmod 755 {} \;


Recursively change permissions on all folders: 

  1. Navigate to your public_html folder
  2. Run the following: find . -type f -exec chmod 644 {} \;
  • 13 Users Found This Useful
Was this answer helpful?