Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx Enabling GeoIP 2 Lite Nginx Module Errors

Discussion in 'Install & Upgrades or Pre-Install Questions' started by EckyBrazzz, Apr 17, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yes answering yes will reset the php.conf contents :)

     
  2. alex_cmm

    alex_cmm New Member

    16
    7
    3
    Apr 2, 2019
    Ratings:
    +7
    Local Time:
    5:49 PM
    Great, I just did Update & overwrite your existing php.conf [y/n]: y , omg how dumb I can be. Have no idea what to do now, why did I touch anything. I am soo angry on myself now :mad:
     
  3. Itworx4me

    Itworx4me Premium Member Premium Member

    339
    35
    28
    Mar 14, 2017
    Ratings:
    +65
    Local Time:
    8:49 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    You will just have to go and re-apply the edits.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    if you check php_upgrade.log logs in /root/centminlogs you will see where php-fpm.conf and php.conf auto backed up before overwrite files are located so you can restore them :)
     
  5. alex_cmm

    alex_cmm New Member

    16
    7
    3
    Apr 2, 2019
    Ratings:
    +7
    Local Time:
    5:49 PM
    I see where they are:

    Code:
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_050519-174300
    Want to update to latest php.conf & php-fpm.conf ? (overwrites will auto backup existing files)
    existing php.conf will be backed up to /usr/local/nginx/conf/php.conf-oldversion_050519-174300
    existing php-fpm.conf will be backed up to /usr/local/etc/php-fpm.conf-oldversion_050519-174300
    Have no idea what are my next steps. I am new to Linux and CentMin Mod, have no idea how to restore them. Dont want to make bigger mess then already is, damm I am angry :(
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    12:49 PM
    Latest
    Latest
    Well, as noop in Linux I used mc (midnight commander) and even in the good old time of MSdos a lot (yum install mc) and you can copy the oldversion to the new one. Just take care to copy it into the correct directory ;) with the correct old path/name.

    If you look at https://www.geeksforgeeks.org/cp-command-linux-examples/ you can use cp also
     
  7. alex_cmm

    alex_cmm New Member

    16
    7
    3
    Apr 2, 2019
    Ratings:
    +7
    Local Time:
    5:49 PM
    Ok this is how I did it:

    cd /usr/local/nginx/conf/
    cp -i php.conf-oldversion_050519-174300 php.conf
    Confirmed with y

    cd /usr/local/etc/
    cp -i php-fpm.conf-oldversion_050519-174300 php-fpm.conf
    Confirmed with y

    Not sure if I needed to restart nginx and php-fpm, probably yes so I did nprestart too.

    Did I do it right? Is this ok or I need to do something more?
     
  8. EckyBrazzz

    EckyBrazzz Active Member

    917
    190
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +363
    Local Time:
    12:49 PM
    Latest
    Latest
    Yes:
    Code (Text):
    restart Nginx + PHP-FPM services
         nprestart
    
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    1:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah restart nginx + php-fpm if unsure
    Code (Text):
    nprestart

    For command shortcuts see FAQ item 16. They're custom created files in /usr/bin i.e. /usr/bin/nprestart etc.