Jack Harner 🚀
Posted on July 21, 2021
Originally Posted to JackHarner.com
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.
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!
Posted on July 21, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
September 11, 2024