title: codeigniter cache folder permission 777
body: <p>I cannot believe it(last red box):
  <a href="https://www.codeigniter.com/user_guide/general/caching.html" rel="nofollow noreferrer">https://www.codeigniter.com/user_guide/general/caching.html</a></p>
  
  <blockquote>
    <p>Note: Before the cache files can be written you must set the file
    permissions on your <strong>application/cache folder</strong> such that it is <strong>writable</strong>.</p>
  </blockquote>
  
  <p>in welcome page:</p>
  
  <pre><code>$this-&gt;output-&gt;cache(60);
  </code></pre>
  
  <p>CodeIgniter requires us to set permission of a folder to <code>777</code> I tested and 775 or 755 did not work. only 777 did work. It means that everybody can read the content of folder, upload php file and execute it. Why does codeigniter suggest such insecure way?</p>
  
  <hr>
  
  <p>updated:</p>
  
  <p>These permissions do not work:</p>
  
  <pre><code>ll
      drwxr-xr-x  2 besime besime 4096 Aug 20 17:46 cache/
  ll
      drwxr-xr-x 15 besime besime 4096 Jun 14 11:11 application/
  ll
      drwxr-xr-x  4 besime besime 4096 Aug  3 12:08 CodeIgniter/
  </code></pre>
  
  <p>until I change cache to:</p>
  
  <pre><code>drwxrwxrwx  2 besime besime 4096 Aug 20 17:46 cache/
  </code></pre>
  
  <p>Then I can see the file <code>b082457291d5cfcb6fb76fda5b43f60a</code> created in cache folder after opening the welcome page.</p>