Skip to content

Instantly share code, notes, and snippets.

@netsensei
Created December 1, 2015 21:14
Show Gist options
  • Save netsensei/e8519d4b621df3330445 to your computer and use it in GitHub Desktop.
Save netsensei/e8519d4b621df3330445 to your computer and use it in GitHub Desktop.
Installing ZermoMQ on Homestead
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