Skip to content

Instantly share code, notes, and snippets.

@mgiacomini
Created August 27, 2014 13:56
Show Gist options
  • Save mgiacomini/43e81488c69d321df50f to your computer and use it in GitHub Desktop.
Save mgiacomini/43e81488c69d321df50f to your computer and use it in GitHub Desktop.
Gearman and your php extension installation in debian dist
#!/bin/bash
# install libs
apt-get install apache2 php5 libapache2-mod-php5 php5-dev
apt-get install gearman-job-server libgearman-dev
apt-get install php-pear
pecl install gearman-1.0.3
# activate Gearman extension for Apache2
echo "extension=gearman.so" > /etc/php5/conf.d/gearman.ini
service apache2 restart
# install supervisor
apt-get install supervisor
echo "\n\n##############\n"
echo "Now you just need to configure the gearman workers in the supervisor. Good Luck!"
echo "\n\n##############\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment