Get the most out of your Centmin Mod LEMP stack
Become a Member

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

    3,478
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    2:50 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    just editing this will give me the correct time also?
     
  2. eva2000

    eva2000 Administrator Staff Member

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,478
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    2:50 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Ok thanks :)
     
  4. dorobo

    dorobo Active Member

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

    Hooray for George!
     
    • Like Like x 2
  5. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    7:50 AM
    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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    7:50 AM
    Mainline
    10.2
    What is different from UTC with EST?
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,478
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    2:50 AM
    Nginx-1.17.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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  10. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    7:50 AM
    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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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:
    7:50 AM
    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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  14. dorobo

    dorobo Active Member

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

    # Python
    PYTHON_VERSION='2.7.7' # Use this version of Python
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  16. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    7:50 AM
    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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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:
    7:50 AM
    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

    41,738
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,439
    Local Time:
    9:50 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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:
    7:50 AM
    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.