title: Ubuntu + Netbeans - Zend framework fatal error due to Include path
body: <p>I'm experiencing a problem with my 'include' path on my fresh install of Zend framework. i'm running Ubuntu and using Netbeans. I installed Zend via the terminal and I have copied the appropriate files to my new project.</p>
  
  <p>I am currently getting this while attempting to access localhost/demoZend/public</p>
  
  <pre><code>Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in /home/mastered/public_html/demoZend/public/index.php on line 18
  
  Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='/home/mastered/public_html/demoZend/library:.:/opt/lampp/lib/php') in /home/mastered/public_html/demoZend/public/index.php on line 18
  </code></pre>
  
  <p>I have copied the 'Zend' folder with the framework into my project/library folder so the folder structure is /demoZend/library/Zend/</p>
  
  <p>I have also changed the 'include' path in my php.ini from the advice of a tutorial. however this is where I have things confused.</p>
  
  <p>The path reads:</p>
  
  <pre><code>include_path = ".:/usr/share/php:/usr/share/php/libzend-framework-php/"
  </code></pre>
  
  <p>in my apache2/php.ini <em>aswell as</em> my /etc/php5/cli/php.ini file.</p>
  
  <p>My index.php file in my project reads as thus:</p>
  
  <pre><code>&lt;?php
  
  // Define path to application directory
  defined('APPLICATION_PATH')
      || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
  
  // Define application environment
  defined('APPLICATION_ENV')
      || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  
  // Ensure library/ is on include_path
  set_include_path(implode(PATH_SEPARATOR, array(
      realpath(APPLICATION_PATH . '/../library'),
      get_include_path(),
  )));
  
  /** Zend_Application */
  require_once 'Zend/Application.php';
  
  // Create application, bootstrap, and run
  $application = new Zend_Application(
      APPLICATION_ENV,
      APPLICATION_PATH . '/configs/application.ini'
  );
  $application-&gt;bootstrap()
              -&gt;run(); 
  </code></pre>
  
  <p>I haven't changed that as the file paths seem ok. 
  I should also point out I have my web documents stored in my '~/public_html' directory, I have checked the permissions on my 'demoZend/library' folder and they have all restrictions <em>off</em>.</p>