Created
May 11, 2017 07:49
-
-
Save pashamray/6b531718379504781237303208dc49d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #download and install the rabbitmq c amqp lib | |
| wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.5.1/rabbitmq-c-0.5.1.tar.gz | |
| tar -zxvf rabbitmq-c-0.5.1.tar.gz | |
| cd rabbitmq-c-0.5.1/ | |
| ./configure | |
| make | |
| sudo make install | |
| cd .. | |
| #download and compile the amqp | |
| wget http://pecl.php.net/get/amqp-1.4.0.tgz | |
| tar -zxvf amqp-1.4.0.tgz | |
| cd amqp-1.4.0/ | |
| phpize && ./configure --with-amqp && make && sudo make install | |
| #Add amqp extension to php mods-availabile directory | |
| echo "extension=amqp.so" > /etc/php5/mods-available/amqp.ini | |
| #Enabled it in cli | |
| cd /etc/php5/cli/conf.d/ | |
| ln -s ../../mods-available/amqp.ini 20-amqp.ini | |
| php -m | grep amqp | |
| #Enabled it in cli | |
| cd /etc/php5/apache2/conf.d/ | |
| ln -s ../../mods-available/amqp.ini 20-amqp.ini | |
| #restart Apache and than check phpinfo on web | |
| service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment