wget http://hg.rabbitmq.com/rabbitmq-c/archive/tip.tar.gz
tar xzf tip.tar.gz
rm tip.tar.gz
wget http://hg.rabbitmq.com/rabbitmq-codegen/archive/tip.tar.gz
tar xzf tip.tar.gz
rm tip.tar.gz
mv rabbitmq-codegen-* rabbitmq-c-*/codegen
cd rabbitmq-c-*/
autoreconf -i && ./configure && make && sudo make install
phpize && ./configure --with-amqp && make && sudo make install
Add:
extension = amqp.so
To php.ini