title: yii framework no such file in directory
body: <p>Recently, I've tried to install an application which requires a yii framework.
  Unfortunately, it seems like it can't find the yii.php file located in my framework directory, and therefore giving me an internal server error.</p>
  
  <p>I've searched for an answer for a really long time, without any result. I'm pretty sure that both the directory and the files are in there.</p>
  
  <p>The error:</p>
  
  <pre><code>PHP Warning:  require_once(/home/site/public_html/framework/yii.php): failed to open stream: No such file or directory in /home/site/public_html/index.php on line 15
  PHP Fatal error:  require_once(): Failed opening required '/home/site/public_html/framework/yii.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/index.php on line 15
  </code></pre>
  
  <p>index.php:</p>
  
  <pre><code>// change the following paths if necessary
  $yii=dirname(__FILE__).'/framework/yii.php';
  $config=dirname(__FILE__).'/application/config/web.php';
  
  if(!is_readable($config))
      exit('Missing configuration file. Please run the &lt;a href="./install"&gt;installation&lt;/a&gt;.');
  
  // remove the following lines when in production mode
  defined('YII_DEBUG') or define('YII_DEBUG',true);
  // specify how many levels of call stack should be shown in each log message
  defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
  
  require_once($yii);
  Yii::createWebApplication($config)-&gt;run();
  </code></pre>
  
  <p>I have also CHMODDED the directory (777) but without any result.
  Help is appreciated.</p>