title: zend 2 not loading with apache on my computer
body: <p>Trying to setup zend with apache on my latop running linux mint 16. I'm not sure what I could have missed in the setup, but when I navigate to localhost I just get a blank page.</p>
  
  <p>Install apaache,php, enabled mod_rewrite:</p>
  
  <pre><code>apt-get install apache2
  apt-get install php5
  apt-get install libapache2-mod-php5
  a2enmod rewrite
  </code></pre>
  
  <p>Copied my zend app (built with the skeleton) to /var/www/t1 (t1 is the app's folder)</p>
  
  <p>Edited: /etc/apache2/sites-enabled/000-default.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
      DocumentRoot /var/www/t1/public
      &lt;Directory /&gt;
          Options FollowSymLinks
          AllowOverride None
      &lt;/Directory&gt;
      &lt;Directory /var/www/t1/public/&gt;
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Order allow,deny
          allow from all
      &lt;/Directory&gt;
  
  RewriteEngine off
  
  &lt;Location /&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} -s [OR]
      RewriteCond %{REQUEST_FILENAME} -l [OR]
      RewriteCond %{REQUEST_FILENAME} -d
      RewriteRule ^.*$ - [NC,L]
      RewriteRule ^.*$ /index.php [NC,L]
  &lt;/Location&gt;
  
      LogLevel warn
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Restarted apache</p>
  
  <pre><code>service apache2 stop
  service apache2 start
  </code></pre>
  
  <p>When I browse to <code>http://localhost</code> I just get a blank page.</p>
  
  <p>edit: After turning on error reporting I found the error was:</p>
  
  <pre><code>Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /var/www/t1/config/autoload/global.php on line 19
  </code></pre>
  
  <p>This was because I forgot to install the mysql module so after doing that it solved the issue.</p>
  
  <pre><code>sudo apt-get install php5-mysql
  </code></pre>