title: Class 'AMQPConnection' not found; AMQP is installed, but not shown in phpinfo
body: <p>I am receiving the error:</p>
  
  <blockquote>
    <p>Fatal error: Class 'AMQPConnection' not found </p>
  </blockquote>
  
  <p>I have installed it following <code>http://php.net/manual/fa/amqp.installation.php</code></p>
  
  <p>and:</p>
  
  <pre><code>extension=amqp.so
  </code></pre>
  
  <p>has been added to the main php.ini file and also the virtualhost's own.</p>
  
  <p>and apache has been restarted.</p>
  
  <p>On phpinfo, amqp appears under "Additional ini files parsed":</p>
  
  <pre><code>/etc/php5/cgi/conf.d/05-opcache.ini, /etc/php5/cgi/conf.d/10-pdo.ini, /etc/php5/cgi/conf.d/20-curl.ini, /etc/php5/cgi/conf.d/20-gd.ini, /etc/php5/cgi/conf.d/20-imap.ini, /etc/php5/cgi/conf.d/20-json.ini, /etc/php5/cgi/conf.d/20-mysql.ini, /etc/php5/cgi/conf.d/20-mysqli.ini, /etc/php5/cgi/conf.d/20-pdo_mysql.ini, /etc/php5/cgi/conf.d/20-readline.ini, /etc/php5/cgi/conf.d/25-amqp.ini
  </code></pre>
  
  <p>However the main amqp block which should appear under <strong>Configuration doesn't exist.</strong></p>
  
  <p>So it's almost like it's installed but not started / installed correctly.</p>
  
  <p>When restarting apache it gives no errors.  So I am not sure where to look for any errors / reasons why it might not be starting or loading into phpinfo.</p>