Title: access denied error code 5
Last modified: January 22, 2024

---

# access denied error code 5

 *  Resolved [ronaldmckie](https://wordpress.org/support/users/ronaldmckie/)
 * (@ronaldmckie)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/access-denied-error-code-5/)
 * Just installed and activated WP Staging. Clicked on button to create staging 
   site. Immediately received error. DirectoryIterator::__construct(E:\web\imperia1/,
   E:\web\imperia1/): Access is denied. (code: 5)
 *  I have no idea what the error means or how to correct it
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Faccess-denied-error-code-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/access-denied-error-code-5/#post-17365298)
 * Hello @ronadmckie,
 * There are several solutions to solve this. Please have a look at this article:
   [https://www.howtogeek.com/904272/how-to-fix-system-error-5-access-denied-on-windows/](https://www.howtogeek.com/904272/how-to-fix-system-error-5-access-denied-on-windows/)
 * It happens because there is no allowed write permission to the folder E:\web\
   imperia1/ in your system.
 * Please let us know if this works and feel free to reopen the ticket.
 * All the best
   René

Viewing 1 replies (of 1 total)

The topic ‘access denied error code 5’ is closed to new replies.

 * ![](https://ps.w.org/wp-staging/assets/icon-256x256.png?rev=2972932)
 * [WP STAGING - WordPress Backup, Restore & Migration](https://wordpress.org/plugins/wp-staging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-staging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-staging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-staging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-staging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-staging/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/access-denied-error-code-5/#post-17365298)
 * Status: resolved