Join the community today
Become a Member

Change Maria DB to latest version before installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Oct 12, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:52 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    I got a new vps fro Digital Ocean and i want to start testing some Centminmod options :)

    Now i want to use MariaDB 5.5.40 newest and i edit the install file and found this:

    # Define current MariaDB version
    MDB_VERONLY='5.2.14'
    MDB_BUILD='122'

    So changing this will work?

    # Define current MariaDB version
    MDB_VERONLY='5.5.40'
    MDB_BUILD='122'

    And what i must edit on the MDB_BUILD field?

    Thanks
     
  2. Razib Hasan

    Razib Hasan Premium Member Premium Member

    31
    11
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +11
    Local Time:
    3:52 PM
    1.7.6
    5.10
    You don't need to change anything. You will get the latest version installed when CentminMod installs MariaDB.
     
  3. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:52 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    And which files i must edit to change and get as default timezone Europe/Athens and GMT if i am not wrong?

    I found on centmin.sh this:

    #!/bin/sh
    ZONEINFO=Europe/Athens # Set Timezone <--- I already change this....

    Thanks
     
  4. Razib Hasan

    Razib Hasan Premium Member Premium Member

    31
    11
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +11
    Local Time:
    3:52 PM
    1.7.6
    5.10
    Line #2 from centmin.sh file
    ZONEINFO=Etc/UTC # Set Timezone

    Change Etc/UTC to Europe/Athens
     
  5. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:52 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    and on:/usr/local/src/centminmod-123.08centos7beta01/inc/phpsededit.inc


    if [[ "$(date +"%Z")" = 'EST' ]]; then
    echo "date.timezone = Australia/Brisbane" >> ${CONFIGSCANDIR}/custom_php.ini
    else
    echo "date.timezone = UTC" >> ${CONFIGSCANDIR}/custom_php.ini
    fi

    Is there any other files needed to change and how exactly i can adjustthis as i can see there EST and UTC?

    Or this edit not needed at all?
     
  6. Razib Hasan

    Razib Hasan Premium Member Premium Member

    31
    11
    8
    May 31, 2014
    Dhaka, Bangladesh
    Ratings:
    +11
    Local Time:
    3:52 PM
    1.7.6
    5.10
    Code:
    if [[ "$(date +"%Z")" = 'EST' ]]; then
    echo "date.timezone = Europe/Athens" >> ${CONFIGSCANDIR}/custom_php.ini
    else
    echo "date.timezone = Europe/Athens" >> ${CONFIGSCANDIR}/custom_php.ini
    fi
    That's what you need to do.
     
    • Like Like x 1
  7. pamamolf

    pamamolf Well-Known Member

    2,533
    231
    63
    May 31, 2014
    Ratings:
    +394
    Local Time:
    12:52 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Great thanks :)