Reset WordPress File Permissions

Somehow I continuously run into File Permissions Issues while working with WordPress, so this is primarily just a reference for myself. For whatever reason, things can get pretty hectic, and you've probably ran into a similar issue if you've ever seen a "Permission Denied" error, or if WordPress asks you for your FTP Connection Information to update a plugin.

WordPress asking for Connection Information

Sometimes it's just best to reset everything back to the way Apache needs it to be to run smoothly: 775 on folders, and 664 on files.

Run the following 3 terminal commands from the root of your WordPress install (the folder containing your wp-config.php file):

chown www-data:www-data -R * # Set Apache's www-data user as the owner
find . -type d -exec chmod 775 {} \;  # Change folder permissions to rwxrwxr-x
find . -type f -exec chmod 664 {} \;  # Change file permissions to rw-rw--r--

I'm sure future me is thanking "now" me for writing this down so I can stop googling it. You're welcome future me!


Get Up & Feel Great!

Take the Meology Prove It Challenge and feel healthier in 30 days. Guaranteed.

Shaklee's Meology
  • Safe

    Shaklee's screening process surpasses US Gov't Standards.
  • Proven

    Most clinically proven Wellness company in the world.
  • Guaranteed

    Money-Back Guarantee. Even if the container's empty.