Welcome to Centmin Mod Community
Become a Member

Featured CentOS 7.x How to help test .08 CentOS 7 Betas with Github code ?

Discussion in 'Beta release code' started by eva2000, Jul 11, 2014.

  1. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Update: 123.08beta03 has gone stable as 123.08stable branch on Github. New 123.09beta01 thread at Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community



    Folks may have seen me start testing .08 centos 7 beta 01 at CentOS 7.x - 1.2.3-eva2000.08 beta install attempts work log and maybe wondering how they can also test CentOS 7.0 64bit with Centmin Mod 1.2.3-eva2000.08 beta 02 (from centos 7 beta 02 branch).

    Below are the 3 ways you can help test using the Centmin Mod .08 beta 02 Github branch. For CentOS 7.0, you'd need a minimum of either 1GB memory or 512MB memory + >512MB swap disk allocated.

    How to install Centmin Mod .08 CentOS 7 beta version



    Note: you can use DigitalOcean VPS to test CentOS 7 + Centmin Mod - full guide at DigitalOcean - Centmin Mod Nginx LNMP install on CentOS 7.0 KVM VPS | Centmin Mod Community


    Method 1: Use instructions outlined on README on 123.08beta03 branch at centminmod/centminmod at 123.08beta03 · GitHub


    Method 2: Use the new installer.sh CLI command line unattended installation script located at here. To use this script, on a fresh virgin CentOS 7.0 64bit type this one line command in SSH window as root user:

    Code:
    curl -sL https://gist.github.com/centminmod/dbe765784e03bc4b0d40/raw/installer.sh | bash
    Method 3: Same as method 2 just an easier to remember url hosted on centminmod.com. See video example here.

    Code:
    curl -sL http://centminmod.com/betainstaller.sh | bash

    Updating to latest .08 betas



    Update: you can also use git command line method to update Upgrade - Working with git command line for updating Centmin Mod local copies | Centmin Mod Community

    Centmin Mod .08 betas are not meant for live production use as features and code may change over the course of beta testing. The nature of beta releases is they get updated often, so to grab the latest code at least, it's basically the same as Method 1 instructions above for 123.08beta03 branch at centminmod/centminmod at 123.08beta03 · GitHub minus the need to run initial install if you are on an existing Centmin Mod .08 beta based server environment and needing to remove the old zip and extracted folder first.

    Update: May 29th, 2015 - With an added step for sed replacement so you'll have a new install directory base at /usr/local/src/123.08beta03 once below steps are completed as 123.08beta03 is now latest beta
    Code:
    branchname=123.08beta03
    rm -rf /usr/local/src/${branchname}.zip
    rm -rf /usr/local/src/centminmod-${branchname}
    mv centminmod-123.08centos7beta01/ centminmod-123.08centos7beta01-orig
    mv centminmod-123.08centos7beta02/ centminmod-123.08centos7beta02-orig
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
    cd /usr/local/src
    unzip ${branchname}.zip
    cd centminmod-${branchname}
    chmod +x centmin.sh
    ./centmin.sh
    sed -i 's|centminmod-123.08centos7beta01|centminmod-123.08beta03|g' /root/.bashrc
    sed -i 's|centminmod-123.08centos7beta02|centminmod-123.08beta03|g' /root/.bashrc
    
    last line is to run centmin.sh and check if it works

    Custom PHP .ini Settings


    Heads up, with Centmin Mod .08 beta, PHP custom default values are set in a .ini file at /etc/centminmod/php.d/a_customphp.ini. So if you want to set your own custom php.ini settings that survive upgrades, you need to create a custom_php2.ini or a file named at /etc/centminmod/php.d/yourfile.ini which is alphabetically after a_customphp.ini (see here)
    Code:
    php --ini
    Configuration File (php.ini) Path: /usr/local/lib
    Loaded Configuration File:         /usr/local/lib/php.ini
    Scan for additional .ini files in: /etc/centminmod/php.d
    Additional .ini files parsed:      /etc/centminmod/php.d/a_customphp.ini,
    /etc/centminmod/php.d/apcu.ini,
    /etc/centminmod/php.d/curlcainfo.ini,
    /etc/centminmod/php.d/custom_php2.ini,
    /etc/centminmod/php.d/geoip.ini,
    /etc/centminmod/php.d/igbinary.ini,
    /etc/centminmod/php.d/imagick.ini,
    /etc/centminmod/php.d/memcache.ini,
    /etc/centminmod/php.d/memcached.ini,
    /etc/centminmod/php.d/newrelic.ini,
    /etc/centminmod/php.d/zendopcache.ini
    

    Bug Reports



    Currently, there are bound to be bugs and errors while I get Centmin Mod fully working with CentOS 7.0 64bit, so you can either report them in Bug reports forum Bug Reports | Centmin Mod Community or within this thread.

    Notes



    Github Branch Commit Comparisons



    If you're like me and want a birds eye view of the commit changes between Centmin Mod .07 stable vs .08 beta 01 vs .08 centos 7 beta 01, you can use Github feature for this.

    3rd party YUM repositories CentOS 7 support



    Not all 3rd party YUM repositories will have equivalent YUM packages available in their CentOS 7.x versions compared with the CentOS 6.x versions. So make sure to check if a needed YUM package is available with the 3rd party YUM repository for CentOS 7.x. These 3rd party YUM repos include, Epel, Rpmforge, Percona, Varnish and Axivo. For instance, Axivo YUM repo for CentOS 7.x is missing alot of packages compared to it's CentOS 6.x version.

    Changes of Note



    As development progresses, there will be changes that need a bit more highlighting to users. I'll list those below:

    Centmin Mod .08 beta Change Log


     
    Last edited: Aug 20, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    8:59 PM
    latest
    latest
    oops sorry George, I deleted my post.

    Didn't know you've already seen it.

    Seems my report is a false alarm :D
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no worries.. thanks for helping testing :D
     
  5. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    8:59 PM
    latest
    latest
    What if CentOS 7 becomes available in majority of the providers (not ISOs), the one that you find for example in SolusVM when you click on reinstall and then a list of Operating Systems appear.

    What if the compatibility library is not installed in it by default?
     

    Attached Files:

  6. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    honestly haven't tried that combination yet. If you have a chance to, would be interesting to see :)
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Added to .08 betas a 2nd alternate php include file phpalt.conf https://github.com/centminmod/centminmod/commit/3063acc4efb2eaaef0f70f6aa41a2806a257ea08 as per discussion at https://community.centminmod.com/threads/connecting-nginx-to-php-fpm.830/

    So in your Nginx vhosts you can choose between 2 different php include configurations to use as an include file
    • /usr/local/nginx/conf/php.conf or
    • /usr/local/nginx/conf/phpalt.conf
     
    Last edited: Jul 13, 2014
  8. hungphutho

    hungphutho Member

    55
    35
    18
    Jun 2, 2014
    Ratings:
    +35
    Local Time:
    7:59 PM
    1.7.2
    Percona 5.6
    not installed successfully in linode centos 7 , RAM 2GB , japan tokyo

    [​IMG]
    I send you the log
     

    Attached Files:

    • log.zip
      File size:
      237.7 KB
      Views:
      0
  9. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    cheers... FYI, easier to use gist.github.com in future ;)

    looks like maybe Linode's CentOS 7 mirrors aren't fully populated yet = HTTP Error 404 Not Found. i.e. http://mirrors.linode.com/centos/7.0/os/x86_64 is 404

    So might want to try again on a fresh OS reload a bit later

    Code:
    *************************************************
    [1;32;40m* Installing PHP
    (B[m*************************************************
    yum -y erase php*
    Loaded plugins: fastestmirror, priorities
    No Match for argument: php-5.4.30
    No Match for argument: php-5.4.30.tar.gz
    No Packages marked for removal
    Forcing buildconf
    Removing configure caches
    buildconf: checking installation...
    buildconf: autoconf version 2.69 (ok)
    http://mirrors.linode.com/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    http://mirror.steadfast.net/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    http://ftp.hosteurope.de/mirror/centos.org/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    http://mirror.us.leaseweb.net/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    ftp://mirror.aarnet.edu.au/pub/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
    Trying other mirror.
    http://mirror.as24220.net/pub/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    http://mirrors.coreix.net/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    ftp://mirror.anl.gov/pub/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
    Trying other mirror.
    ftp://ftp.free.fr/mirrors/ftp.centos.org/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
    Trying other mirror.
    ftp://mirror.bytemark.co.uk/centos/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] FTP Error 550 - Server denied you to change to the given directory
    Trying other mirror.
    http://ftp.jaist.ac.jp/pub/Linux/CentOS/7.0/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    
    
    One of the configured repositories failed (CentOS-7.0 - Base),
    and yum doesn't have enough cached data to continue. At this point the only
    safe thing yum can do is fail. There are a few ways to work "fix" this:
    
         1. Contact the upstream for the repository and get them to fix the problem.
    
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
    
         3. Disable the repository, so yum won't use it by default. Yum will then
            just ignore the repository until you permanently enable it again or use
            --enablerepo for temporary usage:
    
                yum-config-manager --disable base
    
         4. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
    
                yum-config-manager --save --setopt=base.skip_if_unavailable=true
    
    failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
    thus resulting in PHP not having all the required packages to compile

    Code:
    checking for location of ICU headers and libraries... not found
    configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.004s
    user    0m0.000s
    sys    0m0.003s
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.004s
    user    0m0.000s
    sys    0m0.000s
    [1;33;40m----------------------------------------------------------------------------------
    (B[mPHP was not installed properly
    [1;33;40m----------------------------------------------------------------------------------
    (B[m
    y
    on working CentOS 7 YUM repo should have those packages. For example

    Code:
    yum list libicu libicu-devel --disablerepo=rpmforge,epel
    Loaded plugins: fastestmirror, priorities
    Loading mirror speeds from cached hostfile
    * base: mirrors.kernel.org
    * extras: mirror.spro.net
    * updates: centos.mirrors.hoobly.com
    Installed Packages
    libicu.x86_64                                                                  50.1.2-11.el7                                                             @base
    libicu-devel.x86_64                                                            50.1.2-11.el7                                                             @base
     
    Last edited: Jul 18, 2014
  10. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Looks like using php-fpm init.d from CentOS 6.x won't work as expected on CentOS 7.0 as the php-fpm created /var/run/php-fpm/php-fpm/pid is now located on /var/run which on CentOS 7.0 is a tmpfs ram disk mounted symlink to /run. So if you reboot your system on CentOS 7.0, the /var/run/php-fpm directory won't exist on CentOS 7.0. Need to fix that or convert to systemd based php-fpm script for CentOS 7.0.

    Full details at https://community.centminmod.com/th...ith-centos-7-0-changes-systemd.738/#post-3787
     
  11. palPalani

    palPalani Member

    30
    12
    8
    May 30, 2014
    Chennai, IN
    Ratings:
    +20
    Local Time:
    6:29 PM
    Nginx 1.7
    MariaDB 5.5
    Yesterday, i downloaded CentOS 7 minimal and the installed it my virtual box. Then installed centminmod .08 beta. everything finished. But mysql -V is not working.
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  13. palPalani

    palPalani Member

    30
    12
    8
    May 30, 2014
    Chennai, IN
    Ratings:
    +20
    Local Time:
    6:29 PM
    Nginx 1.7
    MariaDB 5.5
    -bash: mysqladmin: command not found

    Also checked install log:
    inc/mysqlsecure.inc: line 7: mysql: command not found
    inc/mysqlsecure.inc: line 8: mysql: command not found
    inc/mysqlsecure.inc: line 9: mysql: command not found
    inc/mysqlsecure.inc: line 10: mysql: command not found
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Github Branch Commit Comparisons

    If you're like me and want a birds eye view of the commit changes between Centmin Mod .07 stable vs .08 beta 01 vs .08 centos 7 beta 01, you can use Github feature for this.
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  17. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Found a bug preventing memcached server stopping in init.d/memcached files for .07 stable and .08 betas while working on a revised memcached init.d file with unix socket option support Memcached - How to Run memcached from a socket? | Centmin Mod Community

    all .07 stable and .08 betas have been updated with the new /etc/init.d/memcached file.

    For existing Centmin Mod users, they can just update that one file via these 2 commands. You may need to re-edit your memory allocation sizes if you changed them from the default 8MB

    Code:
    wget -O /etc/init.d/memcached https://gist.githubusercontent.com/centminmod/94940d2f1cd75c5e18dd/raw/memcached.sh
    chmod +x /etc/init.d/memcached
    
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  19. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    10:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  20. Andy

    Andy Active Member

    542
    89
    28
    Aug 6, 2014
    Ratings:
    +132
    Local Time:
    6:59 AM
    Rackspace has an option to create a server with CentOS 7 (PVHVM)
    Will this work with this version of centminmod?