Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dandehavilland/578929 to your computer and use it in GitHub Desktop.
Save dandehavilland/578929 to your computer and use it in GitHub Desktop.
#!/bin/bash
# WEB SERVER
sudo apt-get update
sudo apt-get install nginx
# APPS FROM SOURCE
cd /usr/local/src/
# PHP (w/FPM for NGINX)
apt-get install build-essential mysql-client libevent-dev libxml2-dev sendmail libcurl3-openssl-dev libbz2-dev libjpeg-dev libpng-dev libmemcache-dev
wget http://uk.php.net/get/php-5.3.3.tar.bz2/from/this/mirror && tar xjf ./php-5.3.3.tar.bz2
cd php-5.3.3 && ./configure \
--prefix=/opt/php-fpm-5.3.3 \
--enable-fpm \
--with-zlib \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-curl \
--enable-mbstring \
--disable-debug \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-pcntl \
--enable-mbregex \
--with-mhash \
--enable-zip \
--with-pcre-regex \
--with-openssl
make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment