note 115337 added to zmq.setup
| From: | felipsmartins at gmail dot com | Date: | Mon, 07 Jul 2014 13:44:34 +0000 |
| Subject: | note 115337 added to zmq.setup | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199881@lists.php.net to get a copy of this message | ||
Installing and configuring ZMQ:
The following exemples is based on Debian Linux but it should work in other OS.
First:
Installing 0MQ:
Go to http://zeromq.org/area:download and choose a
package according your OS, in my case I've choosed
POSIX tarball Stable Release 4.0.4.
~$ tar -xvf zeromq-4.0.4.tar
~$ cd zeromq-4.0.4
~$ ./configure
~$ make
~$ sudo make install
Ok, we just have installed ZMQ now need install zmq php binding...
Make sure you having php-dev and php pear installed. If no:
~$ sudo apt-get install php5-dev php-pear
~$ sudo pecl install zmq-beta
Ok, we have now ZMQ and php binding (ext-php) installed but we should add
"extension=zmq.so" (Or extension=php_zmq.dll on windows) to php.ini:
In my case:
~$ sudo nano /etc/php5/apache2/php.ini
**NOTE:** If PHP version is 5.4.x you will need to add a zmq.ini file in /etc/php5/conf.d and put
"extension=zmq.so":
~$ sudo nano /etc/php5/conf.d/20-zmq.ini
Reloadind HTTP server (in my case apache):
~$ sudo service apache2 reload
----
Server IP: 72.52.91.14
Probable Submitter: 187.114.159.138
----
Manual Page -- http://php.net/manual/en/zmq.setup.php
Edit -- https://master.php.net/note/edit/115337
Del: integrated -- https://master.php.net/note/delete/115337/integrated
Del: useless -- https://master.php.net/note/delete/115337/useless
Del: bad code -- https://master.php.net/note/delete/115337/bad+code
Del: spam -- https://master.php.net/note/delete/115337/spam
Del: non-english -- https://master.php.net/note/delete/115337/non-english
Del: in docs -- https://master.php.net/note/delete/115337/in+docs
Del: other reasons-- https://master.php.net/note/delete/115337
Reject -- https://master.php.net/note/reject/115337
Search -- https://master.php.net/manage/user-notes.php