This post is very short, simply as a reference to anyone out there that would like to install ZooKeeper on CentOS 6.3, and connect via the PHP Bindings.
To download ZooKeeper, you can visit Globocom’s GitHub page for updated versions. Below are the versions I used at the time of writing.
curl -O http://cloud.github.com/downloads/globocom/zookeeper-centos-6/zookeeper-3.4.3-2.x86_64.rpm rpm -ivh zookeeper* service zookeeper restart
ZooKeeper is now up and running, but you need to install some more stuff before you can connect to it!
curl -O http://cloud.github.com/downloads/globocom/zookeeper-centos-6/libzookeeper-3.4.3-2.x86_64.rpm rpm -ivh libzookeeper* curl -O http://cloud.github.com/downloads/globocom/zookeeper-centos-6/libzookeeper-devel-3.4.3-2.x86_64.rpm rpm -ivh libzookeeper-devel*
Install php-zookeeper from Andrei Zmievski:
git clone https://github.com/andreiz/php-zookeeper.git pear build ./configure make make install
add zookeeper.so to your php.ini, or create zookeeper.ini and place it in your php.d folder!
Hope that helps someone!