Last active
November 15, 2016 22:54
-
-
Save MikeWilkie/6a522e3c8f5559d6f561 to your computer and use it in GitHub Desktop.
Recompile & Update nginx as confgured for https://github.com/MikeWilkie/EPEL-LEPP-Configuration
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
cd ~/git/nginx | |
rm -rf nginx-1* | |
rm -rf openssl-1* | |
wget https://www.openssl.org/source/openssl-1.0.1u.tar.gz | |
wget http://nginx.org/download/nginx-1.11.6.tar.gz | |
tar xzvf openssl* && rm -rf openssl-1.0.1u.tar.gz | |
tar -xzvf nginx-1*.tar.gz | |
rm -rf nginx-1*.tar.gz | |
cd echo-nginx-module && git pull && cd ../ | |
cd headers-more-nginx-module && git pull && cd ../ | |
cd lua-nginx-module && git pull && cd ../ | |
cd ngx_auto_lib && git pull && cd ../ | |
cd ngx_aws_auth && git pull && cd ../ | |
cd ngx_http_enhanced_memcached_module && git pull && cd ../ | |
cd ngx_http_redis && git pull && cd ../ | |
cd srcache-nginx-module && git pull && cd ../ | |
cd ngx_pagespeed && git pull | |
git clone git://github.com/pagespeed/ngx_pagespeed.git | |
cd ~/git/nginx/ngx_pagespeed | |
NGX_PAGESPEED_VERSION=$(git describe --abbrev=0 --tags) | |
NGX_PAGESPEED_VERSION=${NGX_PAGESPEED_VERSION/v/} | |
NGX_PAGESPEED_VERSION=${NGX_PAGESPEED_VERSION/-beta/} | |
wget https://dl.google.com/dl/page-speed/psol/${NGX_PAGESPEED_VERSION}.tar.gz | |
tar -xzvf ${NGX_PAGESPEED_VERSION}.tar.gz | |
rm -rf *.tar.gz | |
cd ~/git/nginx/nginx-1* | |
./configure \ | |
--prefix=/usr \ | |
--sbin-path=/sbin/nginx \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--pid-path=/var/run/nginx.pid \ | |
--lock-path=/var/lock/subsys/nginx \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--user=nginx \ | |
--group=nginx \ | |
--group=www-data \ | |
--with-openssl=$HOME/git/nginx/openssl-1.0.1u \ | |
--with-google_perftools_module \ | |
--with-http_ssl_module \ | |
--with-http_secure_link_module \ | |
--with-http_geoip_module \ | |
--with-http_realip_module \ | |
--with-http_sub_module \ | |
--with-http_dav_module \ | |
--with-http_mp4_module \ | |
--with-http_degradation_module \ | |
--with-http_stub_status_module \ | |
--with-http_addition_module \ | |
--with-http_gunzip_module \ | |
--with-http_gzip_static_module \ | |
--with-http_stub_status_module \ | |
--with-http_image_filter_module \ | |
--with-http_xslt_module \ | |
--with-http_perl_module \ | |
--with-poll_module \ | |
--with-select_module \ | |
--with-libatomic \ | |
--with-file-aio \ | |
--with-ipv6 \ | |
--with-file-aio \ | |
--without-mail_pop3_module \ | |
--without-mail_imap_module \ | |
--without-mail_smtp_module \ | |
--add-module=$HOME/git/nginx/headers-more-nginx-module \ | |
--add-module=$HOME/git/nginx/echo-nginx-module \ | |
--add-module=$HOME/git/nginx/lua-nginx-module \ | |
--add-module=$HOME/git/nginx/srcache-nginx-module \ | |
--add-module=$HOME/git/nginx/ngx_http_enhanced_memcached_module \ | |
--add-module=$HOME/git/nginx/ngx_http_redis \ | |
--add-module=$HOME/git/nginx/ngx_pagespeed \ | |
--add-module=$HOME/git/nginx/ngx_aws_auth \ | |
--add-module=$HOME/git/nginx/ngx_auto_lib | |
make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment