Skip to content

Instantly share code, notes, and snippets.

@joselitosn
Last active December 25, 2015 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joselitosn/6938948 to your computer and use it in GitHub Desktop.
Save joselitosn/6938948 to your computer and use it in GitHub Desktop.
Installing nginx + PHP-FPM from source into a Ubuntu 12.04.3 Box - NOT FOR PRODUCTION - Intended to be a minimal version to run DokuWiki - WORK IN PROGRESS
apt-get install build-essential libpcre3-dev libssl-dev zlib1g-dev
cd /opt/
wget http://nginx.org/download/nginx-1.5.6.tar.gz
tar -zxvf nginx-1.5.6.tar.gz
cd /opt/nginx-1.5.6/
./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module
make
make install
adduser --system --no-create-home --disabled-login --disabled-password --group nginx
apt-get install build-essential libpcre3-dev libjpeg-dev libpng12-dev
cd /opt/
wget http://downloads.php.net/jpauli/php-5.5.5RC1.tar.gz
tar -zxvf php-5.5.5RC1.tar.gz
cd /opt/php-5.5.5RC1/
./configure --prefix=/opt/php --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --with-gd \
--disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear \
--without-sqlite3 --without-mcrypt --without-mhash --disable-hash --disable-pdo --disable-ipv6 --disable-json
make
make install