apt-get install gearman
apt-get install libgearman-dev
apt-get install libevent-dev
apt-get install uuid-dev
pecl install gearman-0.6.0
echo “extension=gearman.so” > /etc/php5/conf.d/gearman.ini
/etc/init.d/php5-fpm restart