title: PHP Client can't connect to RabbitMQ server on localhost
body: <p><b>OS</b>: CentOS 6.4<br/>
  I am trying to connect to the RabitMQ server using the php client as follows,</p>
  
  <pre><code>$connection = new AMQPConnection('10.1.150.109', 5672, 'guest', 'guest');
  $channel = $connection-&gt;channel();
  </code></pre>
  
  <p>But when I ran the script from the browser, it gives me this,<br/>
  exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error Connecting to server(13): Permission denied ' in /var/www/html/event/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:27</p>
  
  <p>netstat show this,<br/>
      tcp 0 0 :::5672 :::* LISTEN 10776/beam</p>
  
  <p>In this post, this guy gives the answer implicitly, <a href="https://stackoverflow.com/questions/17426899/client-cant-connect-to-rabbitmq-server-on-localhost">Client can&#39;t connect to RabbitMQ server on localhost</a>. But he has not described the procedure which he followed to fix the issue.</p>
  
  <p>I thank you in advanced for anyone who can help me in this regard.</p>