DEV Community

Jack Harner πŸš€
Jack Harner πŸš€

Posted on β€’ Originally published at jackharner.com on

4 1

Reset WordPress File Permissions

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.

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--
Enter fullscreen mode Exit fullscreen mode

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series πŸ“Ί

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series πŸ‘€

Watch the Youtube series

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay