I've already installed gearman via apt-get install gearman-job-server
I've searched around for a solution without much success.
This is your issue. You haven't installed the php extension - you've just installed the program.
If you use the command apt-cache search gearman
you can see all packages in aptitude relating to the keyword "gearman":
aj@dev ~ $ apt-cache search gearman
drizzle-plugin-gearman-udf - Gearman User Defined Functions for Drizzle
drizzle-plugin-logging-gearman - Gearman Logging for Drizzle
gearman - Distributed job queue
gearman-job-server - Job server for the Gearman distributed job queue
gearman-server - Gearman distributed job server and Perl interface
gearman-tools - Tools for the Gearman distributed job queue
libgearman-client-async-perl - asynchronous client for the Gearman distributed j ob system
libgearman-client-perl - client for the Gearman distributed job system
libgearman-dbg - transitional dummy package
libgearman-dev - Development files for the Gearman Library
libgearman-doc - API Documentation for the Gearman Library
libgearman7 - Library providing Gearman client and worker functions
libgearman7-dbg - Debug symbols for the Gearman Client Library
mod-gearman-doc - Documentation and examples for Mod-Gearman
mod-gearman-module - Nagios/Icinga event broker module for Mod-Gearman
mod-gearman-tools - Tools for mod-gearman
mod-gearman-worker - Worker agent for Mod-Gearman
pandora-build - autotools made better, faster stronger
php5-gearman - PHP wrapper to libgearman
^^^^^^^^^^^^
pnp4nagios-bin - Nagios addon to create graphs from performance data (binaries)
python-gear - Pure Python Async Gear Protocol Library
python-gearman - Python interface to the Gearman system
python-gearman.libgearman - Python wrapper of libgearman
python3-gearman.libgearman - Python 3 wrapper of libgearman
If you look you can see that there's a PHP extension named php5-gearman
. That's what this is what your error is referring to:
the requested PHP extension gearman is missing from your system.
So simply install php5-gearman
and restart php/your webserver:
sudo apt-get install php5-gearman
sudo service php5-fpm restart # restart if you use php5-fpm