Very few easy steps -
- Download desired package from http://pecl.php.net/packages.php
- Extract the tar -
tar xzf gearman-X.Y.tgz
- Enter into extracted directory from terminal -
cd path/to/gearman-X.Y
- Run the following commands -
phpize
./configure
make
sudo make install
- Copy/paste the .so file from your default php extensions folder
- In php.ini, add
extension="gearman.so"
- Restart Apache
To find out the php extensions folder and php.ini file path, check phpinfo