Title: Web server cannot write to temp file
Last modified: February 20, 2018

---

# Web server cannot write to temp file

 *  Resolved [squarology](https://wordpress.org/support/users/squarology/)
 * (@squarology)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/web-server-cannot-write-to-temp-file/)
 * Hello, is being able to write to `~/plugins/wordfence/tmp` necessary for WordFence
   to work properly?
 * I am getting this error and I am not sure if it is necessary or what I need to
   do to fix it. I am running wordpress on a LEMP stack (that is nginx) if that 
   is any help. Thank you for any help you can give me.

Viewing 1 replies (of 1 total)

 *  [wfyann](https://wordpress.org/support/users/wfyann/)
 * (@wfyann)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/web-server-cannot-write-to-temp-file/#post-10001017)
 * Hi [@squarology](https://wordpress.org/support/users/squarology/),
 * The _“plugins/wordfence/tmp”_ folder does indeed need to be writable by the user
   the web server runs as.
 * Have you changed the default permissions?

Viewing 1 replies (of 1 total)

The topic ‘Web server cannot write to temp file’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [LEMP](https://wordpress.org/support/topic-tag/lemp/)
 * [nginx](https://wordpress.org/support/topic-tag/nginx/)
 * [write permissions](https://wordpress.org/support/topic-tag/write-permissions/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfyann](https://wordpress.org/support/users/wfyann/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/web-server-cannot-write-to-temp-file/#post-10001017)
 * Status: resolved