Install Zookeeper PHP Extension
The following tutorial will install the Zookeeper extension for PHP and has been tested on Ubuntu 14.04 and Debian 8.
Steps
Firstly, we need to manually install Zookeeper. You can go here to grab the latest version/link, which at the time of writing this tutorial is 3.4.8. This will result in us having the headers which prevented us from being able to use other solutions to install the extension.
Now that we have zookeeper installed, we can compile the php extension.
We've compiled the PHP extension, now we just need to add it to PHP by executing the following command:
That's it! Run the following command to check that everything installed correctly:
You should see the following output:
zookeeper
References
- Distributed application in PHP with Apache Zookeeper
- Github andreiz/php-zookeeper - Error while installing #63
- Github - install php zookeeper extension
First published: 16th August 2018