Install php gearman on ubuntu precise

Steps

1. Install the gearman job server and libgearman :

sudo apt-get install gearman-job-server libgearman-dev

2. Install the pecl extension

sudo apt-get install php-pear php5-dev
sudo pecl install gearman

The output will show something like this at the end :

Build process completed successfully
Installing '/usr/lib/php5/20100525/gearman.so'
install ok: channel://pecl.php.net/gearman-1.0.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=gearman.so" to php.ini

3. Edit php.ini file :

$ locate php.ini
/etc/php5/apache2/php.ini
/etc/php5/cgi/php.ini

Open the correct php.ini file and add extension=gearman.so at the end.

4. Restart apache







Last Updated On : 21st November 2012

Subscribe to get updates delivered to your inbox

Leave a comment