This is a quick step by step guide on how to install RabbitMQ and the PHP-amqplib client on a Debian server.
- Install server: sudo apt-get install rabbitmq-server
- Check the server status: sudo rabbitmqctl status
- Restart the server: sudo service rabbitmq-server start
- Install PHP5 client (amqp):
- Follow instructions from here: https://github.com/videlalvaro/php-amqplib
- Enable the web administration tool: sudo rabbitmq-plugins enable rabbitmq_management
- 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.
- Tail the STOMP logs for debugging: tail -f /var/log/rabbitmq/*
- 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