Install ZMQ for PHP

tar -zxvf zeromq-4.1.0-rc1.tar.gz
cd zeromq-4.1.0 
make install


pecl install zmq-beta


Find php.ini :

php -i | grep ‘Configuration File’


Check if extension was added:

cat /usr/local/lib/php.ini | grep zmq
Should show:

Setup a phpinfo.php file containing code phpinfo() in that folder, to check if library is loaded.


If server has a firewall, this requires opening some ports in firewall for TCP. Ex: 5555, 8080. Check scripts like push-server.php .

Change php directives with suPHP

You need to create 2 files in public_html of website where suPHP is enabled. A .htaccess specifying path to php.ini configuration and a php.ini with directives.
You can change php settings and load extensions from a central php.ini for all site folders.


Example for account “account-name”. Make sure you update that in .htaccess content:


suPHP_ConfigPath /home/[account-name]/public_html



register_globals = Off