Skip to content

Instantly share code, notes, and snippets.

@bordoni
Created February 27, 2012 04:51
Show Gist options
  • Save bordoni/1921488 to your computer and use it in GitHub Desktop.
Save bordoni/1921488 to your computer and use it in GitHub Desktop.
New Server
sudo apt-get update
sudo apt-get install htop binutils cpp flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl m4 libpcre3 libpcre3-dev libssl-dev libpopt-dev lynx make perl perl-modules openssl unzip zip autoconf2.13 gnu-standards automake libtool bison build-essential zlib1g-dev ntp ntpdate autotools-dev g++ bc subversion psmisc libmysqlclient-dev libcurl4-openssl-dev libjpeg62-dev libpng3-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev libxslt1-dev libbz2-dev libxml2-dev libevent-dev libltdl-dev libmagickwand-dev imagemagick build-essential autoconf2.13 libbz2-dev libevent-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libt1-dev libmcrypt-dev libmysqlclient-dev libxslt-dev
sudo mkdir /tmp/nginx && cd /tmp/nginx
sudo wget http://nsudp ginx.org/download/nginx-1.0.12.tar.gz
sudo tar -zxf nginx-1.0.12.tar.gz
sudo cd nginx-1.0.12
#Check http://nginx.org/en/docs/install.html for more information
./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=../pcre-4.4 --with-zlib=../zlib-1.1.3 --with-debug
sudo make && sudo make install
cd /tmp
sudo rm -r nginx
sudo mkdir /tmp/php5 && cd /tmp/php5
sudo wget http://br.php.net/get/php-5.3.10.tar.gz/from/us.php.net/mirror
tar -xzf mirror
cd php-5.3.10
./buildconf --force
./configure --prefix=/opt/php5 --with-config-file-path=/opt/php5/etc --with-curl --with-pear --with-gd --with-jpeg-dir --with-png-dir --with-zlib --with-xpm-dir --with-freetype-dir --with-t1lib --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-pdo-mysql --with-openssl --with-xmlrpc --with-xsl --with-bz2 --with-gettext --with-fpm-user=www-data --with-fpm-group=www-data --enable-fpm --enable-exif --enable-wddx --enable-zip --enable-bcmath --enable-calendar --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-shmop --enable-dba --enable-sysvmsg --enable-sysvsem --enable-sysvshm
sudo make
sudo make install
cd /tmp
sudo rm -r php*
cd /tmp
sudo wget http://repo.varnish-cache.org/ubuntu/dists/lucid/varnish-3.0/source/varnish_3.0.2.orig.tar.gz
tar -zxvf varnish_3.0.2.orig.tar.gz
cd varnish-3.0.2
sudo sh autogen.sh && sudo sh configure
sudo make && sudo make check && sudo make install
cd /tmp
sudo rm -r varnish*
sudo varnishd -f /etc/varnish/default.vcl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment