title: PHP Fatal error: Class 'AMQPConnection' not found
body: <p>I've already seen <a href="https://stackoverflow.com/questions/5424419/rabbitmq-error-when-connect">this question</a>. It suggests that AMQP PECL extension is not installed. However, I have successfully installed both RabbitMQ as well as built PECL AMQP extension. The following is the output of the phpinfo().</p>
  
  <p><img src="https://i.stack.imgur.com/IixHs.png" alt="phpinfo() output displaying AMQP extension configurations"></p>
  
  <p>You can clearly see, AMQP is loaded correctly. However, when I try to establish a connection, it says <strong>PHP Fatal error:  Class 'AMQPConnection' not found</strong>. Below is the code.</p>
  
  <pre><code>$connection = new AMQPConnection();
  </code></pre>
  
  <p>And here is the output.</p>
  
  <pre><code>user@ubuntu:~$ php repos/default/test.php
  PHP Fatal error:  Class 'AMQPConnection' not found in /home/user/repos/default/test.php on line 5
  </code></pre>
  
  <p>Why this might happen? Any suggestions? Thank you.</p>