Discover Centmin Mod today
Register Now

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

    Apr 3, 2015
    Local Time:
    6:25 AM
    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.
    php -v
    nginx -v

  2. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    6:25 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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 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 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 or

    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 or 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