title: Starting out with Zend framework 2, class not found errors
body: <p>I'm trying to get started with a simple LAMP site however can't seem to get the Zend framework to be picked up by my local Apache instance. I started on XAMPP on Windows and have since tried a Centos 6 VM with manual Apache/PHP install, but still get the same error on both which is below. The phpinfo() works fine, as does the rest of the site.</p>
  
  <pre><code>Fatal error: Class 'Zend\Log\Logger' not found in /var/www/html/site/public/test.php on line 20
  </code></pre>
  
  <p>My website code is a fairly simple test to invoke a Zend framework logger which is as follows
          
  
  <pre><code>use Zend\Log\Logger;
  use Zend\Log\Writer;
  echo "&lt;p&gt;Hello world&lt;/p&gt;";
  echo $_POST["VIN"]; 
  phpinfo();
  $logger = new Zend\Log\Logger;
  $writter = new Zend\Log\Writer\Stream('php://output');
  $logger-&gt;addWriter($writer);
  ?&gt;
  </code></pre>
  
  <p>My Apache linux httpd.conf is </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  
  DocumentRoot /var/www/html/site/public
  &lt;Directory /var/www/html/site/public&gt;              
      DirectoryIndex test.php 
      AllowOverride All
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Zend framework resides in /var/www/html/site/library/Zend, and I've added /var/www/html/site/library to the php.ini include as well.</p>