download from http://pecl.php.net/package/amqp
apt-get install librabbitmq0
ln -s /usr/lib/librabbitmq.so.0 /usr/local/lib/librabbitmq.so
git clone https://github.com/alanxz/rabbitmq-c rabbitmq-c
cd rabbitmq-c
cp ./librabbitmq/amqp_framing.h /usr/local/include/
cp ./librabbitmq/amqp.h /usr/local/include/
cd ../amqp-1.2.0
phpize
./configure –with-amqp
make
make test
make install
echo “extension=amqp.so” >> /etc/php5/cli/php.ini