Gearman is an out of this world, open-source parallel activity runner and/or job server. it’s simple to implement and works across many different languages. in reality, which you could name workers that run in one language from clients in every other language. When scaling and parallelization turn out to be issues you want to sort out, this can be a very helpful feature. Our purpose in the back of this put up isnt to describe Gearman or let you know how great it is; its to duvet the set up process on Ubuntu 12.04, as a result of it may be confusing, and the Gearman web page doesnt do a super job of describing the process. The installation is in point of fact simple though youll see. Step 1: install Python-software-houses & the Gearman PPA if you dont have python-software-residences put in, we will need to install it. there may be additionally a Gearman PPA for Ubuntu, so we will be able to add that to our repository record and do an update. 1 2 3 sudo apt-get install python-device-homes sudo add-apt-repository ppa:gearman-developers/ppa sudo apt-get replace Step 2: set up the Gearman Job Server & Dev instruments & operate improve Now that we have the respository installed, lets go in advance and install the Job Server and tools. this is pretty easy. 1 2 sudo apt-get set up gearman-job-server libgearman-dev sudo apt-get upgrade Step 3: Use p.c. to install Gearman (CLI, consumer, worker) using p.c., we are able to merely install the opposite wanted elements of Gearman now. 1 sudo % install gearman Step four: update Our php.ini (CLI and Server) to make use of Gearman Now we want to inform PHP to make use of the gearman.so extension. when you arent sure whether or not you’ll be using an internet-server-based totally Gearman or the CLI version, that you could install each to be secure. it is very important word that PHP has two separate php.ini recordsdata for CLI and Server. For the CLI php.ini (/and so on/php5/cli/php.ini) Open your php.ini on your favourite text editor. 1 sudo vim /and so forth/php5/cli/php.ini Add the next line within the Dynamic Extensions section of your php.ini. 1 extension=gearman.so For the Apache-based totally php.ini (/and many others/php5/apache2/php.ini) Open your php.ini in your favorite textual content editor. Please note that this is a totally different file than the one we just discussed. 1 sudo vim /etc/php5/apache2/php.ini Add the Dynamic Extension once more on this file. 1 extension=gearman.so Restart Apache: 1 sudo provider apache2 restart Step 5: are attempting the Examples Now, that you may are trying the examples found right here to confirm that you’re all set up on Gearman. Conclusion neatly done! After a easy and easy installation, you now have an incredible task runner. Have enjoyable with it!