RabbitMq Installation on Ubuntu 12.04

Seems like there are a lot of sources with pieces of this. This worked for me on Ubuntu 12.04.

sudo apt-get remove rabbitmq-server
sudo apt-get install python-software-properties
sudo add-apt-repository "deb http://www.rabbitmq.com/debian/ testing main"
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update
sudo apt-get install rabbitmq-server -y
sudo service rabbitmq-server start
sudo rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
sudo apt-get install php5-dev
cd /tmp/
wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.5.0/rabbitmq-c-0.5.0.tar.gz    (URL from: https://github.com/alanxz/rabbitmq-c)
tar -zxvf rabbitmq-c-0.5.0.tar.gz
cd rabbitmq-c-0.5.0/
sudo apt-get install make
sudo make install
cd ..
wget http://pecl.php.net/get/amqp-1.2.0.tgz    (URL: http://pecl.php.net/package/amqp)
tar -zxvf amqp-1.2.0.tgz 
cd amqp-1.2.0/
phpize && ./configure --with-amqp && make && sudo make install
sudo nano /etc/php5/cli/php.ini 

inside nano
ctrl-w , .so, enter
extension = amqp.so
ctrl-x, Y, enter

cd /vagrant/public/
sudo service php5-fpm restart
sudo service nginx restart

Hope that helps!

  1. jim
    • rcravens
  2. Pedro Moreira
  3. Mostafa A. Hamid

Leave a Reply

Your email address will not be published.