Welcome to Centmin Mod Community
Become a Member

Upgrade nginx and php upgraded showing older version

Discussion in 'Install & Upgrades or Pre-Install Questions' started by HarryPotter, Oct 15, 2016.

  1. HarryPotter

    HarryPotter Member

    41
    0
    6
    Apr 3, 2015
    Ratings:
    +0
    Local Time:
    6:45 PM
    Hi. I have tried to upgrading nginx and php to latest version.
    The update was successfull but when i try to see the version. It is still show the old version.
    Code:
    php -v
    Code:
    nginx -v

     
  2. eva2000

    eva2000 Administrator Staff Member

    30,160
    6,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,135
    Local Time:
    6:45 PM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx and php upgrade logs at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log and located at /root/centminlogs/ccentminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    then use cat command to output the contents of that log. Do the same for php_upgrade.log log.

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share

    so only need content of 2 specific logs, in this case most recent nginx_upgrade.log and php_upgrade.log logs
     
    Last edited: Oct 16, 2016