Created
September 14, 2010 12:01
-
-
Save dandehavilland/578929 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# 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