Created
          August 27, 2014 13:56 
        
      - 
      
 - 
        
Save mgiacomini/43e81488c69d321df50f to your computer and use it in GitHub Desktop.  
    Gearman and your php extension installation in debian dist
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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