Join the community today
Register Now

Nginx Nginx update to latest version errors

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Mar 25, 2015.

Tags:
  1. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    11:30 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi
    I just try to update to latest Nginx version 1.7.11 and i got some errors:

    Code:
    nginx-1.7.11/auto/cc/sunc
    make: *** No rule to make target `clean'.  Stop.
    and

    Code:
    GeoLiteCity database download ...
    2015-03-25 02:41:50 URL:http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz [12263571/12263571] -> "/usr/share/GeoIP/GeoLiteCity.dat.gz" [1]
    
    Check existing server string:
    grep: src/http/ngx_http_header_filter_module.c: No such file or directory
    
    Change server string to nginx secure
    sed: can't read src/http/ngx_http_header_filter_module.c: No such file or directory
    
    inc/nginx_configure.inc: line 199: ./configure: No such file or directory
    *************************************************
    
    Wed Mar 25 02:41:51 EET 2015
    Error: 127, Nginx configure failed
    And when i check if new version is working i got this :(

    [root@server ~]# nginx -v
    nginx version: nginx/1.7.10
     
    Last edited: Mar 25, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    6:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    try recompiling via centmin.sh menu option 4 again
     
  3. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    11:30 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Yes now is ok :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    6:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    Found the cause of this error, it's due to Centmin Mod .08 beta 02 now defaults to installing GeoIP for Nginx and it's routine changes directory when it installs GeoIP if not detected - so when it comes to Nginx upgrade, it doesn't find the directory the first time. Second time it finds Nginx directory as GeoIP files are detected so doesn't change directories.

    Fix it in latest commit to Centmin Mod .08 beta02 (branch 123.08centos7beta02) fix Nginx upgrade routine due to GeoIP addition for .08 beta 02 · centminmod/centminmod@6abfb98 · GitHub
     
  5. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    11:30 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Today with the latest version of Centminmod beta i got this:

    Code:
    Detected existing Nginx has NGINX_GEOIP=y enabled
    however, you are recompiling Nginx with NGINX_GEOIP=n
    but i have on centmin.sh this:

    Code:
    NGINX_GEOIP=y                    # Nginx GEOIP module install
     
    Last edited: Mar 26, 2015
  6. eva2000

    eva2000 Administrator Staff Member

    29,022
    6,586
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,776
    Local Time:
    6:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    thanks that section needs updating as now .08 beta 02 defaults to installing Nginx GeoIP out of the box

    made fix at fix Nginx GeoIP detection for .08 beta 02 · centminmod/centminmod@e82fcce · GitHub
     
  7. pamamolf

    pamamolf Well-Known Member

    2,521
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    11:30 AM
    Nginx-1.13.x
    MariaDB 10.1.x