Alberto Roura

Correct file & folder permissions for WordPress

28 May 20141 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.

644

Fixing the rest of installation

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

755 permissions

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