Posted by gateway69 on January 24, 2012 at 9:16pm
Im going to be building Nginx from source but I wanted to know what additional modules/addons I need to be aware of when compiling this to get it to work with drupal..
currently I have seen that and use the upload progress system..
anything else?
also anyone care to share their configure line and potential /etc/nginx settings?
cheers
Comments
My debian rules
file config target:
export LUAJIT_INC="/usr/include/luajit-2.0"export LUAJIT_LIB="/usr/$(dpkg-architecture -qDEB_HOST_GNU_TYPE)/libluajit-5.1.so.2.0.0"
./configure --conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-debug \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--with-http_flv_module \
--with-http_geoip_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-ipv6 \
--with-file-aio \
--with-http_secure_link_module \
--with-http_mp4_module \
--with-http_image_filter_module \
--add-module=$(CURDIR)/modules/nginx-upstream-fair \
--add-module=$(CURDIR)/modules/nginx-upload-progress-module \
--add-module=$(CURDIR)/modules/ngx_http_auth_request_module \
--add-module=$(CURDIR)/modules/nginx-sticky-module \
--add-module=$(CURDIR)/modules/nginx-tengine-footer-filter \
--add-module=$(CURDIR)/modules/nginx-tengine-http-concat \
--add-module=$(CURDIR)/modules/lua-nginx-module \
$(CONFIGURE_OPTS)
EDIT: Ah yes. You can get the binary package or the source here.
On my ppa
On my ppa (https://launchpad.net/~brianmercer/+archive/nginx) I use:
./configure \--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-debug \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-ipv6 \
--with-sha1=/usr/include/openssl \
--with-md5=/usr/include/openssl \
--without-http_scgi_module \
--without-http_uwsgi_module \
--without-http_geo_module \
--with-http_realip_module \
--without-http_split_clients_module \
--without-http_userid_module \
--add-module=$(MODULESDIR)/nginx-echo \
--add-module=$(MODULESDIR)/nginx-upstream-fair \
--add-module=$(MODULESDIR)/nginx-upload-progress \
--add-module=$(MODULESDIR)/ngx_cache_purge-1.3
If you're using Ubuntu, you might consider using that package and just adding your modules and configure options to the nginx-custom deb.
Sorry, I am hijacking a
Sorry, I am hijacking a little..
@brianmercer - I am currently using the https://launchpad.net/~nginx/+archive/stable PPA for both nginx and php-fpm.. I think th reason I used it was because I could have sworn I read somewhere that your PPA was no longer being maintained or something like that.. :)
Currently I have the -full package installed which obviously doesn't have the upload progress module.. Is there a way to find out (without actually installing it) if the upload progress module is in the -extras version of this PPA?
or
Would you suggest I switch to your PPA version and use your -custom build if I want upload progress??
Thanks..
thanks guys, ill try from
thanks guys, ill try from source next.. how do you add modules when stuff is already a binary.. aka my first stab I got the ppa binaries.
I posted my small walk though on what I did to at least get up and running, now its figuring out what nginx modules I need and what my nginx and vhost config should be to make everything play right..
then comes trying to figure out all the caching :)
cheers
here is my walk though..
http://groups.drupal.org/node/205063
Well, you may or may not want
Well, you may or may not want to start walking down the path to Debian package creation but as a teaser, it'd be something like this:
...add the repo and update
apt-get source nginx
apt-get build-dep nginx
...download and place your modules in the debian/modules directory
...edit debian/rules with your config options and module locations
... document your changes in the changelog with ...
dch -i
debuild -us -uc
dpkg -i nginx....deb
Editing the package can be much simpler than installing from source since it has all the config files and directories tailored to your distro.
You deserve a better howto.
ill just compile with source
ill just compile with source or use yours that has some of those modules already added.