title: Message: cache_dir must be a directory
body: <p>Hello people I have some problems with Zend Framework.<br> I first got the following message:
  Message:<br> Could not determine temp directory, please specify a cache_dir manually.
  <br>I searched google and found this post: <a href="https://stackoverflow.com/questions/5651276/zend-framework-could-not-determine-temp-directory-please-specify-a-cache-dir">Zend Framework : Could not determine temp directory, please specify a cache_dir manually</a>
  <br>I read it and now when I fill in the form I get the following error:
   <br>(Everywhere where I put .. in the error means the domain.)<br><br>Message: cache_dir must be a directory</p>
  
  <pre><code>- #0 /home/daan/domains/../library/Zend/Cache/Backend/File.php(154): Zend_Cache::throwException('cache_dir must ...')
   - #1 /home/daan/domains/../library/Zend/Cache/Backend/File.php(121): Zend_Cache_Backend_File-&gt;setCacheDir('/domains/daan.h...')
   - #2 /home/daan/domains/../library/Zend/Cache.php(153): Zend_Cache_Backend_File-&gt;__construct(Array)
   - #3 /home/daan/domains/../library/Zend/Cache.php(94): Zend_Cache::_makeBackend('File', Array, false, false)
   - #4 /home/daan/domains/../library/Zend/Locale/Data.php(307): Zend_Cache::factory('Core', 'File', Array, Array)
   - #5 /home/daan/domains/../library/Zend/Locale/Format.php(796): Zend_Locale_Data::getList('nl_NL', 'day')
   - #6 /home/daan/domains/../library/Zend/Locale/Format.php(1106): Zend_Locale_Format::_parseDate('16-02-2013', Array)
   - #7 /home/daan/domains/../library/Zend/Date.php(4763): Zend_Locale_Format::getDate('16-02-2013', Array)
   - #8 /home/daan/domains/../library/Zend/Validate/Date.php(175): Zend_Date::isDate('16-02-2013', 'MM-DD-YYYY', NULL)
   - #9 /home/daan/domains/../library/Zend/Form/Element.php(1391): Zend_Validate_Date-&gt;isValid('16-02-2013', Array)
   - #10 /home/daan/domains/../library/Zend/Form.php(2135): Zend_Form_Element-&gt;isValid('16-02-2013', Array)
   - #11/home/daan/domains/../application/controllers/BugController.php(27): Zend_Form-&gt;isValid(Array)
   - #12 /home/daan/domains/../library/Zend/Controller/Action.php(513): BugController-&gt;submitAction()
   - #13 /home/daan/domains/../library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action-&gt;dispatch('submitAction')
   - #14 /home/daan/domains/../library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard-&gt;dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
   - #15 /home/daan/domains/../library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front-&gt;dispatch()
   - #16 /home/daan/domains/../library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap-&gt;run()
   - #17 /home/daan/domains/../public_html/index.php(26): Zend_Application-&gt;run()
   - #18 {main} 
  </code></pre>
  
  <p>Application.ini: </p>
  
  <pre><code>resources.cachemanager.configFiles.frontend.name = File
  resources.cachemanager.configFiles.frontend.customFrontendNaming = false
  resources.cachemanager.configFiles.frontend.options.lifetime = false
  resources.cachemanager.configFiles.frontend.options.automatic_serialization = true    
  resources.cachemanager.configFiles.backend.name = File
  resources.cachemanager.configFiles.backend.customBackendNaming = false
  resources.cachemanager.configFiles.backend.options.cache_dir = APPLICATION_PATH      "/../tmp"
  resources.cachemanager.configFiles.frontendBackendAutoload = false
  </code></pre>
  
  <p>Initcache:</p>
  
  <pre><code> protected function _initCaching() {
  $frontend = array(
  'lifetime' =&gt; $time,
  'automatic_serialization' =&gt; true
  );
  $backend = array(
  'cache_dir' =&gt; sys_get_temp_dir(),
  );
  $cache = Zend_Cache::factory('core', 'File', $frontend, $backend);
  Zend_Registry::set('cache', $cache);
  </code></pre>
  
  <p>}</p>
  
  <p>Folder Structure:<br>
  .htpasswd<br>
  application<br>
  awstats<br>
  library<br>
  logs<br>
  public_ftp<br>
  public_html<br>
  tmp</p>