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/ ./configure sudo apt-get install make 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!
Comments
The amqp extension needs to be added to the php.ini in the fpm directory too.
Thanx for the simple steps, they worked great except for that little oversight.
Thanks for that catch. We were only running command line calls (CLI). Adding it to the FPM directory will allow calls originating from nginx to access the queue. For that matter if you are running apache, then adding it to the apache2 php.ini file would be needed.
I’m getting a “[amqp_excange.lo] Error 1” when running make.
I have rabbitmq 3.4.1 already running and i’m trying to install the 1.4.0 extension.
The machine is Ubuntu Server 14.04.
What could it be?
Thanks author and I really had a new experience working with rabbitmq server.