Correct file & folder permissions for WordPress

- 1 min read

Some plugin desapeared to your WordPress installation? Some hacked thing? No problem, if you fix the file permissions on your files you will harden your site.

Fixing ‘.htaccess‘ & ‘wp-admin/index.php

First of all, we must verify the permissions of ‘.htaccess‘ and ‘wp-admin/index.php‘. They cannot be writable except for the user. The correct permission for them is 644.


Fixing the rest of installation

Now we fix the rest of the WordPress installation with a 755 permissions.

755 permissions
755 permissions

After that changes you can sleep better from now ;-)

Share: Link copied to clipboard


Previous: Creating a bootable Ubuntu USB on a MacBook Pro 5,5 Mid-2009
Next: Politically Correct UNIX

Where: Home > Technical > Correct file & folder permissions for WordPress