Created
          July 16, 2010 16:47 
        
      - 
      
 - 
        
Save carlosjac/478614 to your computer and use it in GitHub Desktop.  
  
    
      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 Nginx, PHP and fcgi on Ubuntu 10.04 (Slicehost). | |
| # Execute as root | |
| # | |
| # Author : Carlos Jacobs | |
| # Date : 16 Jul 2010 | |
| # | |
| # install nginx, php5 , fastcgi | |
| # install nginx and php | |
| aptitude install nginx php5-cli php5-cgi build-essential wget psmisc | |
| /etc/init.d/nginx start | |
| # config nginx | |
| wget http://gist.github.com/raw/478587/79163f0ff4a5c7401246bc01ea021a4845285ecd/nginxconfig | |
| mv nginxconfig /etc/nginx/nginx.conf | |
| /etc/init.d/nginx stop | |
| /etc/init.d/nginx start | |
| # install fastcgi | |
| cd /opt | |
| wget http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.gz | |
| tar -xf spawn* | |
| cd spawn* | |
| ./configure | |
| make | |
| cp src/spawn-fcgi /usr/bin/spawn-fcgi | |
| wget http://gist.github.com/raw/478602/1f2a44ec5f54cad1d4ffd05a5627a7e543289672/fcgiwrapper | |
| mv fcgiwrapper /usr/bin/php-fastcgi | |
| chmod a+x /usr/bin/php-fastcgi | |
| wget http://gist.github.com/raw/478605/f9626ad319ebc35bc3676b8152ddffcd5e18db6c/phpfastcgiinitd | |
| mv phpfastcgiinitd /etc/init.d/php-fastcgi | |
| chmod 755 /etc/init.d/php-fastcgi | |
| update-rc.d php-fastcgi defaults | |
| /etc/init.d/php-fastcgi start | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment