Upgraded nginx on a centos 6 test system from 1.10.x to 1.12.x via yum update. I then followed steps to get GeoIP module working (https://tushev.org/articles/linux-bsd/32/using-dynamic-geoip-module-with-nginx-centos).
When I run nginx -t, the following error is displayed:
$ nginx -t
nginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so" version 1010002 instead of 1012000 in /usr/share/nginx/modules/mod-http-image-filter.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
In my nginx.conf file I commented out the line below
include /usr/share/nginx/modules/*.conf;
and nginx worked as expected again. That's great but doesn't solve my problem. Since this is a dev environment I need to get this working 100%. I am unsure that I really need the image filter after reading the specs (http://nginx.org/en/docs/http/ngx_http_image_filter_module.html).
Further, I did add individual modules back with luck as well:
load_module "modules/ngx_http_geoip_module.so";
I would like to know how to solve the version issue that the error displays and to know if omitting these modules, outside of the one I want, is okay?
Thank you for your time and consideration.
Posting another solution for people having similar problems, running these following commands worked for me on Centos 7 after I had already configured yum
to look to the latest version:
sudo yum remove nginx-mod*
sudo yum install nginx-module-*
Here are some more details
In case Someone face the same problem i invite him to follow these steps to resolve the issues of the compatibility:
before making the module ngx_http_modsecurity_module.so that needed to be load in nginx.conf config file under /etc/nginx/nginx.config.
load_module modules/ngx_http_modsecurity_module.so;
and continue the process... as described here nginx.org hope im helpful.
Rollback to 1.10.2.
nginx: [emerg] module "/etc/nginx/modules/ngx_http_geoip_module.so" version 1010002 instead of 1013002 in /etc/nginx/nginx.conf:12
nginx version: nginx/1.13.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With