Created
December 1, 2015 21:14
-
-
Save netsensei/e8519d4b621df3330445 to your computer and use it in GitHub Desktop.
Installing ZermoMQ on Homestead
This file contains 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
First install ZeroMQ itself. | |
1. sudo apt-get update | |
2. sudo apt-get install pkg-config | |
3. sudo apt-get install libzmq3-dev | |
Now install the PHP language binding. We assume PHP is running as PHP-FPM. | |
1. sudo pecl install zmq-beta | |
When the 'prefix' is asked, input: /usr/local | |
Now let's add and enable the zmq PHP module to your PHP installation. | |
2. cd /etc/php5/mods-available | |
3. sudo touch zmq.ini | |
4. echo "extension=zmq.so" | sudo tee -a zmq.ini | |
5. sudo php5enmod zmq | |
6. sudo /etc/init.d/php5-fpm restart | |
- DONE - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment