Discover Centmin Mod today
Register Now

Install Centmin Mod .07 beta 21 to stable status

Discussion in 'Beta release code' started by eva2000, May 30, 2014.

Thread Status:
Not open for further replies.
  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:29 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    just editing this will give me the correct time also?

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:29 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok thanks :)
     
  4. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    And because of NTP which Centminmod also installs, your server will always be on time.

    Hooray for George!
     
  5. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    You can also edit php.ini using the shortcut $ phpedit

    and look for

    date.timezone = UTC

    and change it.

    $ fpmrestart

    for the change to take effect.
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    inc/phpsededit.inc does that for line 2 to 6 at https://github.com/centminmod/centminmod/blob/123.07beta21/inc/phpsededit.inc#L2

    Code:
        if [[ "$(date +"%Z")" = 'EST' ]]; then
        sed -i "s/;date.timezone =/date.timezone = Australia\/Brisbane/g" /usr/local/lib/php.ini
        else
        sed -i "s/;date.timezone =/date.timezone = UTC/g" /usr/local/lib/php.ini
        fi
    if default system isn't EST it sets it to UTC automatically
     
  7. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    11:29 PM
    Mainline
    10.2
    What is different from UTC with EST?
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    6:29 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    If i edit and change the ZONEINFO do i have to edit also the phpsededit.inc ?
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    Error on the latest beta, attended mode

    Install Python Update ? [y/n] y
    Download Python-2.7.6.tgz ...
    Error: Python-2.7.6.tgz not found !!! Download now......
    Initializing download: http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
    Too many redirects.

    Python-2.7.6.tgz download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...


    I think I also got this error with the latest stable.

    edit: I meant to say attended mode
     
    Last edited: Jun 9, 2014
  11. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like temporary network connectivity issues either on your server or their end as I can download that file fine. Try re-running install as it aborted at download stage and see.

    ah i see Python 2.7.7 came out https://www.python.org so could be related

     
    Last edited: Jun 9, 2014
  12. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    I tried it again on 1 VPS and 1 droplet, latest beta, attended mode

    Install Python Update ? [y/n] y
    Download Python-2.7.6.tgz ...
    Error: Python-2.7.6.tgz not found !!! Download now......
    Initializing download: http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
    Too many redirects.

    Python-2.7.6.tgz download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...

    I'm going to try 2.7.7 in /addons/python27_install.sh
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    I noticed that this should also be changed in centmin.sh

    # Python
    PYTHON_VERSION='2.7.7' # Use this version of Python
     
  15. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    Ok now I'm confused

    Install Python Update ? [y/n] y
    Download Python-2.7.7.tgz ...
    Error: Python-2.7.7.tgz not found !!! Download now......
    Initializing download: http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    Too many redirects.

    Python-2.7.7.tgz download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...

    I will just have to say no to this.
     
  17. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    weird worked for me

    Code:
    --2014-06-09 09:14:38--  http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    Resolving www.python.org... 199.27.79.175
    Connecting to www.python.org|199.27.79.175|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz [following]
    --2014-06-09 09:14:38--  https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    Connecting to www.python.org|199.27.79.175|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 14809415 (14M) [application/octet-stream]
    Saving to: `Python-2.7.7.tgz'
    
    100%[=====================================================================================================================>] 14,809,415  14.3M/s   in 1.0s  
    
    2014-06-09 09:14:39 (14.3 MB/s) - `Python-2.7.7.tgz' saved [14809415/14809415]
    what happens if you do it manually

    Code:
    cd /svr-setup
    wget http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
     
  18. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    works for me as well using wget

    # wget http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    --2014-06-08 23:17:07-- http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    Resolving www.python.org... 185.31.17.175
    Connecting to www.python.org|185.31.17.175|:80... connected.
    HTTP request sent, awaiting response... 301 Moved Permanently
    Location: https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz [following]
    --2014-06-08 23:17:07-- https://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
    Connecting to www.python.org|185.31.17.175|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 14809415 (14M) [application/octet-stream]
    Saving to: “Python-2.7.7.tgz”

    100%[======================================>] 14,809,415 29.2M/s in 0.5s

    2014-06-08 23:17:08 (29.2 MB/s) - “Python-2.7.7.tgz” saved [14809415/14809415]

    but not using the script

    this is the same VPS
     
  19. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    1:29 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    strange if you remove the -cnv options from addons/python27_install.sh

    Code:
    wget -cnv http://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_LINKFILE} --tries=3
    does it work ?
     
  20. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:29 PM
    latest
    latest
    Ok I'll try again.

    I'll just have to download it manually if it still doesn't work

    Which folder do I wget python for it not to download anymore?
     
Thread Status:
Not open for further replies.