How to install RabbitMQ Server and Client on Debian

This is a quick step by step guide on how to install RabbitMQ and the PHP-amqplib client on a Debian server.

  1. Install server: sudo apt-get install rabbitmq-server
  2. Check the server status: sudo rabbitmqctl status
  3. Restart the server: sudo service rabbitmq-server start
  4. Install PHP5 client (amqp):
    • Follow instructions from here: https://github.com/videlalvaro/php-amqplib
  5. Enable the web administration tool: sudo rabbitmq-plugins enable rabbitmq_management
  6. Open the web management tool: http://hostname:55672/
    • Security note: default web tool username / password is guest / guest; this may pose a security risk if not changed quickly.
  7. Tail the STOMP logs for debugging:  tail -f /var/log/rabbitmq/*
  8. The default install does not ship with an example configuration file. Details about how to configure can be found here: https://www.rabbitmq.com/configure.html#configuration-file

More details available here: http://www.rabbitmq.com/install-debian.html