Install some packages for compilling:
apt-get -y install php7.0-dev unzip wget re2c libgearman-dev
Downloading and installing gearman module:
wget https://github.com/wcgallego/pecl-gearman/archive/master.zip unzip master.zip cd pecl-gearman-master phpize ./configure make install echo "extension=gearman.so" > /etc/php/7.0/mods-available/gearman.ini phpenmod -v ALL -s ALL gearman
Removing installation files:
cd .. rm -r pecl-gearman-master/ rm master.zip
Check module:
php -m | grep gearman