title: Installing RabbitMQ PHP: Fatal error: Class 'AMQPConnection' not found
body: <p>I've already installed the RabbitMQ on my server and everything is working fine with it. I already tried to send and receive queued messages with a Java client and everything went perfect.</p>
  
  <p>Now I need to install a PHP RabbitMQ client because I want to communicate a Java program with a PHP webpage, but this time I'm not beign so lucky.</p>
  
  <p>I already followed the steps of the <a href="http://www.php.net/manual/en/amqp.installation.php" rel="nofollow noreferrer">official webpage for this installation</a>, specifically these steps:</p>
  
  <pre><code># Download the rabbitmq-c library
  hg clone http://hg.rabbitmq.com/rabbitmq-c/rev/3c549bb09c16 rabbitmq-c
  cd rabbitmq-c
  # Add the codegen requirement
  hg clone http://hg.rabbitmq.com/rabbitmq-codegen/rev/f8b34141e6cb codegen
  # Configure, compile and install
  autoreconf -i &amp;&amp; ./configure &amp;&amp; make &amp;&amp; sudo make install 
  </code></pre>
  
  <p>And actually on the console I can see that it was "installed" without any problems. But when I try to open any AMQP Connection I get this error:</p>
  
  <pre><code>Fatal error: Class 'AMQPConnection' not found
  </code></pre>
  
  <p>Actually if I use the phpinfo(); command I can't see anything related to an AMQP module (like in <a href="https://stackoverflow.com/questions/8199435/php-fatal-error-class-amqpconnection-not-found">this</a> question). So I think that it may be a problem with the installation but I tried reinstalling it two times and it keeps saying that everything went well.</p>
  
  <p>Have anyone crossed with this problem too?</p>