Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaowenqiang/597b3c4f8bbb5b422ca6bee60de0cf42 to your computer and use it in GitHub Desktop.
Save yaowenqiang/597b3c4f8bbb5b422ca6bee60de0cf42 to your computer and use it in GitHub Desktop.
Installing AMQP Extension for PHP in CentOS operation system. This will create an amqp.so shared object that needs to be included in your php.ini file. Find the extensions portal of the ini and add “extension=amqp.so”.
$ git clone git://github.com/alanxz/rabbitmq-c.git
$ cd rabbitmq-c
$ git submodule init
$ git submodule update
$ yum install libtool
$ yum install autoconf
$ yum install automake
$ yum install php-pear
$ yum install php-devel
$ make
$ make install
$ pecl install AMQP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment