title: smarty cannot locate directories on /home
body: <p>I've got <code>/usr/local/lib/php/Smarty/Smarty.class.php</code> and I've put my Smarty templates, cache and other directories in <code>/home/groucho/Code/PHP/smarty/</code>.</p>
  
  <p>This is my <code>index.php</code> file in <code>/var/www/sapienter</code> (which is my app folder):</p>
  
  <pre><code>&lt;?php
  // put full path to Smarty.class.php
  require('/usr/local/lib/php/Smarty/Smarty.class.php');
  $smarty = new Smarty();
  
  $smarty-&gt;setTemplateDir('/home/groucho/Code/PHP/smarty/templates');
  $smarty-&gt;setCompileDir('/home/groucho/Code/PHP/smarty/templates_c');
  $smarty-&gt;setCacheDir('/home/groucho/Code/PHP/smarty/cache');
  $smarty-&gt;setConfigDir('/home/groucho/Code/PHP/smarty/configs');
  
  $smarty-&gt;testInstall();
  
  
  $smarty-&gt;assign('name', 'Ned');
  $smarty-&gt;display('index.tpl');
  
  ?&gt;
  </code></pre>
  
  <p>But this doesn't work, since it gives me this output:</p>
  
  <pre><code>Smarty Installation test...
  Testing template directory...
  FAILED: /home/groucho/Code/PHP/smarty/templates/ does not exist.
  Testing compile directory...
  FAILED: /home/groucho/Code/PHP/smarty/templates_c/ does not exist.
  Testing plugins directory...
  /usr/local/lib/php/Smarty/plugins is OK.
  Testing cache directory...
  FAILED: /home/groucho/Code/PHP/smarty/cache/ does not exist.
  Testing configs directory...
  FAILED: /home/groucho/Code/PHP/smarty/configs/ does not exist.
  Testing sysplugin files...
  ... OK
  Testing plugin files...
  ... OK
  Tests complete.
  
  
  Fatal error: Uncaught --&gt; Smarty: Unable to load template file 'index.tpl' &lt;-- thrown in /usr/local/lib/php/Smarty/sysplugins/smarty_internal_templatebase.php on line 127
  </code></pre>
  
  <p><code>/home/groucho/Code/PHP/smarty</code> folder permissions are set by <code>chmod -R 775</code>, and I'm the owner.</p>
  
  <p>If I put the <code>templates</code> folder and the other ones directly in <code>/var/www/sapienter</code> and I write</p>
  
  <pre><code>$smarty-&gt;setTemplateDir('/var/www/sapienter/templates');
  </code></pre>
  
  <p>it works.</p>
  
  <p>Why is that? Why does <code>/var</code> path works and <code>/home</code> doesn't?</p>