There are many reasons your file permissions may be reset and cause errors in your wp-admin dashboard. Typically this is most seen when making edits over SFTP or git. If you see the following errors, you know that your file permissions need to be reset:
- failed to open stream: Permission denied in /nas/content/live/…
- Could not copy file.: /nas/content/live/account_name/readme.html – Installation Failed
- Failed to load resource: the server responded with a status of 403 (Forbidden)
Essentially if you see any of these errors or anything that looks like these errors (“forbidden”, ”denied” or “failed”) it’s probably safe to assume that your file permissions need to be reset.
Default file permissions
Default file permissions are restricted for security purposes. If you edit these on your site, the change will not be retained.
There is no way to force higher permissions beyond these default settings. For example if a plugin requests a directory be set to 777, it will not be possible on WP Engine.
How to Reset File Permissions
File permissions can be restored to their defaults from two locations: within your User Portal, and within your WordPress Admin Dashboard. When resetting file permissions using either method, it will reset the permissions for both your live and legacy staging environments.
NOTE: Allow 1-2 minutes for the file permissions reset to be performed. For smaller sites this takes a matter of seconds, but for sites with a large number of files the process will be longer. Clustered environments will take the longest due to natural file replication across nodes.
- Login to the User Portal
- Click Sites
- Click the environment name to reset permission on
- Click Utilities
- Click Reset, under Reset File Permissions
WordPress Admin Dashboard
- Login to your site’s wp-admin
- Click the WP Engine plugin
- Click Reset File Permissions