Answers.Body: <p>How are you setting permissions? Command prompt? (S)FTP? What user does php run under? Make sure there are no <code>open_basedir</code> restrictions as well. </p>
  
  <p>You can find out the user that php runs under as well as a bunch of other details right inside Craft: <code>http://server/admin/utils/phpinfo</code> and look for <code>user/group</code> and <code>open_basedir</code>.</p>
  
  <p>Make sure you're giving the <code>storage</code> directory recursive permission as well. I would delete everything under <code>/storage</code> manually...</p>
  
  <pre><code>cd /path/cms/craft/storage/ &amp;&amp; rm -r * &amp;&amp; chmod -R 777 . 
  </code></pre>
  
  <p>... and then let Craft/php recreate the folders underneath.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T15:11:06.777Z
Answers.Text: Thanks for the help @RitterKnight. I'm setting permissions on those folders via command line, using chmod. It's probably of note that this issue is happening locally. I checked the user info via phpinfo and it's showing my computer name. `USER thompsong`. I also looked for open_basedir and it says `no value` . I deleted everything like you instructed. Now it just throws the error for the cache folder and said the other two don't exist (obvious I guess). Lastly, if I monitor the cache folder, it appears it is deleting stuff, but still throwing the error.
Answers.UserDisplayName: Greg Thompson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T16:36:47.393Z
Answers.Text: When you say locally do you mean something like MAMP? It'll default to htdocs in the Applications folder which is a pain for permissions. I'd change that to something in your own home folder.  Then you won't have to worry about permissions since the web server will be your username.
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T16:37:36.890Z
Answers.Text: If that's not the case, somewhere along the line the permissions got screwy so you may have to grant permission all the way at the top, starting at ``/path/``. Do a ``sudo chown -R thompsong:thompsong /path/``. That'll make sure you own everything down the path.
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T16:47:13.007Z
Answers.Text: I run the project with `php -S localhost:4000`. I'll try and change owners and get back to you. Thanks!
Answers.UserDisplayName: Greg Thompson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T16:51:18.807Z
Answers.Text: Ah yes, the built-in server. Never tried running Craft that way so I don't know if it's even possible. I think some people have had luck with it but I'd [recommend](http://craftcms.stackexchange.com/a/10489/1016) running  your dev stack as close as possible to what the production environment is.
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-04T17:52:32.553Z
Answers.LastActivityDate: 2015-11-04T18:05:48.137Z
Answers.LastEditDate: 2015-11-04T18:05:48.137Z
Answers.UserDisplayName: RitterKnight
Body: <p>I've been stumped on this one for awhile and tried everything. When I click Clear Caches in settings, it appears as if everything works fine but when I check the logs I see... </p>
  
  <p>2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/cache/, but could not.
  2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/assets/, but could not.
  2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/temp/, but could not.</p>
  
  <p>I ommited the actual path because it contained a clients name but I checked it's accuracy. I also noticed that it appears to be writing files to the cache folder. I also verified permissions on the folders and parent folder, all are set at 777 (for testing) was set at 744. I'm not sure what else to try or do. Thanks!</p>
  
Tags: <cache>
Title: Can't clear caches locally
ThreadText: # Can't clear caches locally
  
  (Asked by: username_0 on 2015-11-04)
  
  I've been stumped on this one for awhile and tried everything. When I click Clear Caches in settings, it appears as if everything works fine but when I check the logs I see...
  
  2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/cache/, but could not.
  2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/assets/, but could not.
  2015/11/04 17:10:16 [error] [application] Tried to read the folder contents of path/cms/craft/storage/runtime/temp/, but could not.
  
  I ommited the actual path because it contained a clients name but I checked it's accuracy. I also noticed that it appears to be writing files to the cache folder. I also verified permissions on the folders and parent folder, all are set at 777 (for testing) was set at 744. I'm not sure what else to try or do. Thanks!
  
  **Tags:** cache
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-11-04. Score: 2
  
  How are you setting permissions? Command prompt? (S)FTP? What user does php run under? Make sure there are no `open_basedir` restrictions as well.
  
  You can find out the user that php runs under as well as a bunch of other details right inside Craft: `http://server/admin/utils/phpinfo` and look for `user/group` and `open_basedir`.
  
  Make sure you're giving the `storage` directory recursive permission as well. I would delete everything under `/storage` manually...
  
  ```
  cd /path/cms/craft/storage/ && rm -r * && chmod -R 777 . 
  
  ```
  
  ... and then let Craft/php recreate the folders underneath.
  
  > **Comments:**
  > **username_0**: Thanks for the help @username_1. I'm setting permissions on those folders via command line, using chmod. It's probably of note that this issue is happening locally. I checked the user info via phpinfo and it's showing my computer name. `USER thompsong`. I also looked for open_basedir and it says `no value` . I deleted everything like you instructed. Now it just throws the error for the cache folder and said the other two don't exist (obvious I guess). Lastly, if I monitor the cache folder, it appears it is deleting stuff, but still throwing the error.  
  > **username_1**: When you say locally do you mean something like MAMP? It'll default to htdocs in the Applications folder which is a pain for permissions. I'd change that to something in your own home folder.  Then you won't have to worry about permissions since the web server will be your username.  
  > **username_1**: If that's not the case, somewhere along the line the permissions got screwy so you may have to grant permission all the way at the top, starting at ``/path/``. Do a ``sudo chown -R thompsong:thompsong /path/``. That'll make sure you own everything down the path.  
  > **username_0**: I run the project with `php -S localhost:4000`. I'll try and change owners and get back to you. Thanks!  
  > **username_1**: Ah yes, the built-in server. Never tried running Craft that way so I don't know if it's even possible. I think some people have had luck with it but I'd [recommend](http://craftcms.stackexchange.com/a/10489/1016) running  your dev stack as close as possible to what the production environment is.  
  
  ---
  
  