01 April 2012

NginX-svn4568 MinGW Win32

Want to test more my php-cgi (mingw build) last week but feel bothered to install/setup apache...

Building is quite straightforward, do not download from nginx.org instead take the svn trunk source code at svn://svn.nginx.org/nginx/trunk and modify ngx_atomic.h@24 to include defined __MINGW32__ then depends on which mingw api you use you may encountered conflicting off_t

$ configure --with-pcre=/local/php --with-zlib=/local/php --with-libatomic=/local/php --with-openss
l=/local/php --with-ipv6 --with-http_xslt_module --with-http_geoip_module --with-http_image_filter_
module --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1 --with-http_ssl_module --with-mail --with-
mail_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with
-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --wit
h-http_random_index_module --with-http_stub_status_module --with-select_module

note:  --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1  not required if you have openssl

the configure/conf kind a odd though (or it just me?) that I need to edit the final objs/makefile from strayed path including changing NGX_PREFIX into "./" (hmm not sure about it, but kinda works)

Well at least I'm greeted with "Welcome to nginx!", time to set up with php... oh remind me old days!

1 comment: