Last active
December 25, 2015 07:19
-
-
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
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
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 |
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sources
1. nginx installation
http://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-lemp-on-debian-wheezy
http://www.lonelycoder.be/nginx-php-fpm-mysql-phpmyadmin-on-ubuntu-12-04/
http://www.ubuntubrsc.com/instalando-nginx-php-fpm-apc-varnish-mysql-ubuntu-server-12-04.html
https://library.linode.com/web-servers/nginx/installation/ubuntu-12.04-precise-pangolin
http://blog.thehippo.de/2012/12/server/install-nginx-from-source-on-ubuntu/
2. PHP-FPM installation
http://gediminasm.org/post/compile-php
http://geekpad.ca/blog/post/compiling-your-own-nginx-php-fpm-part-2
3. DokuWiki installation
https://www.dokuwiki.org/install
http://download.dokuwiki.org/
https://www.dokuwiki.org/security#web_access_security
4. Troubleshooting
http://askubuntu.com/q/114076
http://stackoverflow.com/q/13101820