Answers.Body: <p>Make sure that the folder <code>/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/</code> is writable to the webserver user.</p>
  
  <p>The simplest solution is to set the permissions on that folder to be read/write for ALL users.</p>
  
  <p>A better solution is to configure the permissions so that they are open to your user account and the webserver alone, but not other users on the same hosting server. How you approach this depends on the hosting environment and probably requires learning how to manage filesystem permissions.</p>
  
  <p>See also: </p>
  
  <ul>
  <li><a href="https://civicrm.stackexchange.com/questions/168/are-there-recommended-directory-ownership-and-permission-settings-for-civicrm-fi?rq=1">Are there recommended directory ownership and permission settings for CiviCRM files?</a></li>
  <li><a href="https://civicrm.stackexchange.com/questions/4144/civicrm-does-not-have-permission-to-write-temp-files-on-new-server?rq=1">CiviCRM does not have permission to write temp files on new server</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-13T02:01:18.997Z
Answers.LastActivityDate: 2015-10-13T02:01:18.997Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Chris Burgess
Answers.Body: <p>Check your permissions for /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/upload. It's not surprising that the file in the error doesn't exist when you check--CiviCRM hasn't had the ability to create it!</p>
  
  <p>The most common issue is that the folder is owned by your SSH user, not the user that Apache runs as.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-13T00:55:19.610Z
Answers.LastActivityDate: 2015-10-13T00:55:19.610Z
Answers.UserDisplayName: Andie Hunt
Body: <p>I am getting this message:  </p>
  
  <pre><code>Unable to write file: /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/upload/version-info-cache.json
  Please check your system file permissions.
  </code></pre>
  
  <p>But this files doesn't seem to exist in that location. Should it exst there or could there be something wrong in my settings?</p>
  
  <p>(CiviCRM 4.6.8 and Wordpress 4.3.1)</p>
  
Tags: <permissions>
Title: Unable to write file
ThreadText: # Unable to write file
  
  (Asked by: username_0 on 2015-10-12)
  
  I am getting this message:  
  Unable to write file: /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/upload/version-info-cache.json
  Please check your system file permissions.
  
  But this files doesn't seem to exist in that location. Should it exst there or could there be something wrong in my settings?
  (CiviCRM 4.6.8 and Wordpress 4.3.1)
  
  **Tags:** permissions
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-10-13. Score: 4
  
  Make sure that the folder `/var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/` is writable to the webserver user.
  
  The simplest solution is to set the permissions on that folder to be read/write for ALL users.
  
  A better solution is to configure the permissions so that they are open to your user account and the webserver alone, but not other users on the same hosting server. How you approach this depends on the hosting environment and probably requires learning how to manage filesystem permissions.
  
  See also:
  
  * [Are there recommended directory ownership and permission settings for CiviCRM files?](https://civicrm.stackexchange.com/questions/168/are-there-recommended-directory-ownership-and-permission-settings-for-civicrm-fi?rq=1)
  * [CiviCRM does not have permission to write temp files on new server](https://civicrm.stackexchange.com/questions/4144/civicrm-does-not-have-permission-to-write-temp-files-on-new-server?rq=1)
  
  
  ---
  
  ### Answer by username_2 on 2015-10-13. Score: 3
  
  Check your permissions for /var/www/vhosts/examplesite.com/httpdocs/wp-content/plugins/files/civicrm/upload. It's not surprising that the file in the error doesn't exist when you check--CiviCRM hasn't had the ability to create it!
  
  The most common issue is that the folder is owned by your SSH user, not the user that Apache runs as.
  
  
  ---
  
  