Skip to content

Instantly share code, notes, and snippets.

@oscherler
Created October 29, 2014 07:53
Show Gist options
  • Save oscherler/02b9001224d55f428329 to your computer and use it in GitHub Desktop.
Save oscherler/02b9001224d55f428329 to your computer and use it in GitHub Desktop.

Installing RabbitMQ and the PHP PECL extension on Ubuntu 14.04 LTS

RabbitMQ apt repository

sudo add-apt-repository 'deb http://www.rabbitmq.com/debian/ testing main'
curl http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add -
sudo apt-get update

RabbitMQ server and management plug-in

sudo apt-get install rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management

AMQP PECL extension and dependencies

sudo apt-get install librabbitmq-dev librabbitmq1
sudo pecl install amqp

Enabling the AMQP PECL extension

echo extension=amqp.so | sudo tee /etc/php5/mods-available/amqp.ini
sudo php5enmod amqp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment