title: Failed to load TinyMCE JS (Codeigniter)
body: <p>I'm building a simple document management application but the TinyMCE JS is failing to load (403 error). First I thought this had something to do with file permissions and so I recursively changed everything to 777 (yes, stupid of me but I badly wanted this to work); but this didn't solve anything. </p>
  
  <p>The Chrome console tells me: </p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 403 (Forbidden)</p>
  </blockquote>
  
  <p>Here's my view page which attempts to load the editor:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript" src="http://localhost/ankdocs/application/js/tinymce/jscripts/tiny_mce/tiny_mce.js"/&gt;
  &lt;script language="javascript" type="text/javascript"&gt;
    tinyMCE.init({
      theme : "advanced",
      mode: "exact",
      elements : "doc",
      theme_advanced_toolbar_location : "top",
      theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,"
      + "justifyleft,justifycenter,justifyright,justifyfull,formatselect,"
      + "bullist,numlist,outdent,indent",
      theme_advanced_buttons2 : "link,unlink,anchor,image,separator,"
      +"undo,redo,cleanup,code,separator,sub,sup,charmap",
      theme_advanced_buttons3 : "",
      height:"350px",
      width:"600px"
  });
  &lt;/script&gt;
  
  &lt;div id="newdoc"&gt;
  
  &lt;table&gt;
  &lt;tr&gt;
    &lt;td&gt;Document name:&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" id="docname"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;textarea id="doc" name="doc" rows="20" cols="40"&gt;Type here&lt;/textarea&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>As you can see, nothing fancy here. Somebody told me that perhaps some Apache module is missing (I'm on Ubuntu) but I'm really not sure how to fix that. </p>
  
  <p>Please help! </p>
  
  <p>Let me know if more code is needed.</p>
  
  <p>============ Extended ===========</p>
  
  <p>As requested in the comments, here's the output for search on .htaccess file:</p>
  
  <pre><code>root@vostro:~# find /opt/lampp/htdocs/ -iname '*access'
  /opt/lampp/htdocs/xampp/sqlite/.htaccess
  /opt/lampp/htdocs/ankdocs/application/cache/.htaccess 
  /opt/lampp/htdocs/ankdocs/application/.htaccess 
  /opt/lampp/htdocs/ankdocs/system/.htaccess
  </code></pre>
  
  <p>The file ankdocs/application/.htaccess says "Deny from all."
  The file ankdocs/system/.htaccess says "Deny from all."</p>