Discover Centmin Mod today
Register Now

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

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    k fixed the logging of wpcli install update addons/wpcli.sh CENTMINLOGDIR='/root/centminlogs' missing · centminmod/[email protected] · GitHub

    as to password hard to say what the problem is, of course with wp-cli tool you can easily change the wordpress admin password via wp user update command wp user update | WP-CLI within your wordpress install directory i.e. /home/nginx/domains/newdomain2.com/public

    Code:
    wp user update USERIDNUMBER --user_pass=YOURNEWPASSWORD --allow-root
    for example provided there's only 1 user in Wordpress USERID variable would get the ID of that user to pass to wp user update command
    Code:
    cd /home/nginx/domains/newdomain2.com/public
    USERID=$(wp user list --field=ID --allow-root)
    wp user update $USERID --user_pass=YOURNEWPASSWORD --allow-root
     
    • Like Like x 1
  2. AlekseY

    AlekseY Member

    47
    4
    8
    Feb 18, 2015
    Ratings:
    +7
    Local Time:
    1:06 AM
    del
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,477
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    1:06 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    What do you think also about my recommendation George?

    6)At the end i got this:

    Code:
    Wordpress DB Name: mydatabase
    Wordpress DB User: username
    Wordpress DB Pass: password
    I want to recommend to have a related question if i want a new db with user and pass created for me when i add a simple Nginx vhost also as it will save a lot of time !!!!
     
  4. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    1:36 AM
    1.9.x
    5.5
    sure , but if some one does't like to install WP ?
     
  5. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    Does the newest branch work also on a CentOS 6.6?

    And why don't you add to the menu a: "upgrade Centmin" command? So noobs like me, when they installed once Centmin Mod, can update to the newest branch by using the menu?
     
  6. rdan

    rdan Well-Known Member

    4,671
    1,121
    113
    May 25, 2014
    Ratings:
    +1,663
    Local Time:
    6:06 AM
    Mainline
    10.2
    Yes.
     
    • Like Like x 1
  7. pamamolf

    pamamolf Premium Member Premium Member

    3,477
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    1:06 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Because there is no easy way to replace the running file centmin.sh :)
     
  8. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    1:36 AM
    1.9.x
    5.5
    no easy ways , but you can make it easy :)
    i think some one can make upgrade option for centmin mod :) *maybe*
     
  9. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    I don't understand?
    How do we upgrade Centmin Mod? We open shell command and put in a code after code and it is then installed somehow.
    So instead we put the code into the shell manually, the system by itself could do that (after we chose in menu to upgrade). And eva would have control over of the propper code so we don't have to worry if we did it correctly or not.
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    3,477
    335
    83
    May 31, 2014
    Ratings:
    +642
    Local Time:
    1:06 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Always run commands from ssh :)

    Automated way:

    Code:
    cd /usr/local/src/centminmod-123.08centos7beta02/tools
    chmod +x cmupdate.sh
    ./cmupdate.sh
    Manual:

    Code:
    branchname=123.08centos7beta02
    rm -rf /usr/local/src/${branchname}.zip
    rm -rf /usr/local/src/centminmod-${branchname}
    wget -O /usr/local/src/${branchname}.zip https://github.com/centminmod/centminmod/archive/${branchname}.zip
     
  11. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM

    But for the manual way you must know the correct codes. Do you really know out of your mind what to type in to the shell?
    Will you tell me that you remember these codes? Or do you copy/paste? I could never remember those lines and use wget, -rf, $, correct files source etc.
    You must always make sure you didn't forget a letter or something.


    No, the automated way should be like this:

    Code:
    cd /usr/local/src/centminmod-123....
    ./centmin.sh
    24 (choose from menu for upgrade the correct number: xx)
    Why, because when I want to upgrade php, MariaDB, nginx, etc. this is everything I have to remember. No need to know what kind of codes to use, just the standard CMM procedure. It would be more user-friendly. So why not the same for CMM upgrade? Your code is again a different code you need to remember. Why not everything in 1 menu?
     
  12. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    for now those are correct ways to upgrade..

    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code which you downloaded via zip file or via github. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod is best.
    There's 3 official ways you can upgrade your .07 stable or .08 beta02 code you have on your server. They are outlined in respective upgrade sections of the first posts linked below:
    1. For .07 stable 1st post see section on upgrades Install - Centmin Mod 1.2.3-eva2000.07 stable install
    2. For .08 beta 02 1st post see section on upgrade to latest code CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ?
    3. For either .07 stable or .08 beta02 via github command line Upgrade - Working with git command line for updating Centmin Mod local copies
    Github commit log for
    For now centmin.sh option isn't available as centmin.sh itself is part of the code that gets upgraded but centmin.sh itself is running at the time if you were to run a upgrade on itself. Think of it like updating windows operating system core code, why do you think a computer reboot is necessary ? because windows can't update itself while it's running. That's why I created the tool at /usr/local/src/centminmod-123.08centos7beta02/tools/cmupdate.sh

    edit: I guess you could make it easier by copying /usr/local/src/centminmod-123.08centos7beta02/tools/cmupdate.sh to /usr/bin/cmupdate and giving it executable permissions 0700

    Code:
    cp /usr/local/src/centminmod-123.08centos7beta02/tools/cmupdate.sh /usr/bin/cmupdate
    chmod 0700 /usr/bin/cmupdate
    Then SSH and run cmupdate should work - but you'd have to remember to update the cmupdate copy if I make updates to /usr/local/src/centminmod-123.08centos7beta02/tools/cmupdate.sh
    Code:
    cmupdate
    I'll probably do this in next .08 beta update once I fully recover from being sick Away Time - taking a sicky ! | Centmin Mod Community
     
    Last edited: Apr 18, 2015
    • Like Like x 1
  13. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Using Centmin Mod LEMP stack doesn't excuse folks from digging deeper and doing a bit of learning ;)

    There's no way you can avoid learning something new with using Centmin Mod LEMP stack as for one thing Centmin Mod is structured totally different to any other Linux distro's include Nginx and PHP-FPM versions.

    Personally, I believe learning how to manually update Centmin Mod is an important skill - it helps with troubleshooting issues and understanding how Centmin Mod works and/or where all it's pieces are laid out. And the basic commands used to manually update Centmin Mod are important for general system admin tasks too from downloading files with wget, removing files without prompts (rm -rf), bash variables with $VARIABLENAME etc

    If WHM/Cpanel is one end of the spectrum of full GUI user friendly control panel and 100% SSH command line is the other end of the spectrum, then Centmin Mod would fall just to the half way mark but closer to SSH command line.
     
  14. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  15. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    Yeah, I assumed something like that. Just I represent the typicial computer noob when it comes to server stuff. Have no clue at all. And as someone like that, I expect the easiest way of handling. A handling I know of and I remember. And the whole CMM thing works with centmin.sh, I even used the menu code line 1 to make a fresh install. So I expect the same when I want to upgrade it, that I will find the upgrade options in the same menu.
    I am not demanding something, don't misunderstand me, I am making a suggestion. But you are the pro so you know the best, I am not questioning it, just wanted to explain my view.

    And why can't the centmin.sh just work like windows handles it?
    So the upgrade will happen, when you exit the centmin menu, then you are no more runnung it at the same time.
    Make a warning message for that propper menu for the upgrade
    "If you choose to upgrade CMM to the newest branch, it will be upgraded AFTER your leave the menu.
    Do you want to leave now the menu? Enter 22 for exit. Or stay to make other configurations."
    And then it updates somehow the existing centmin.sh stuff. Maybe copy temporarily the needed code for the update somewhere, so it can update centmin.sh
     
    Last edited: Apr 18, 2015
  16. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    well the eventual plan is to have menu option for updating centmin mod itself which will take time to flesh out and probably be something only available after .08 becomes stable as right now .08 beta's install directly differs from .07 stable's install directory as you can see from differing instructions at Upgrade - Working with git command line for updating Centmin Mod local copies | Centmin Mod Community

    If you're playing with Centmin Mod .08 betas, then expect to roll up your sleeves and be willing to hit the SSH command line from time to time especially with all these .08 beta code updates ;)
     
    • Like Like x 2
  17. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    No, of course we have to learn. And I did, not much but I do understand some things now.

    I am not avoiding learning, just I am so much afraid of I can mess up things. And then you are on your own and you have no clue what you have to do now.
    The problem is, all these stuff has so many tiny things, as a newbie you just don't know them. Most of the people do this stuff to earn money, they setup their sites for that purpose. The point is, they didn't start today like I did. All the people here around seem to know what is going on and know the basics of hosting and such. I don't. Not that it is all about me, just the server administration stuff could be more user-friendly, specially for beginners.
     
  18. eva2000

    eva2000 Administrator Staff Member

    41,731
    9,397
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,434
    Local Time:
    8:06 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yes I understand that, that's why on official download page at Download - Centmin Mod - Menu based Nginx installer for CentOS servers

    Test servers are there for you to make all the mistakes you want without any fear of screwing things up :)

    This very forum runs Centmin Mod LEMP but I also have a 2nd test VPS server copy with duplicate data. I always run commands, updates on test VPS copy first to make sure it works before running on live VPS. It's not just noobs that can make mistakes but professionals can also make mistakes.
     
  19. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    That's great news, nice, thanks.

    Yeah, but I learned my lesson. I won't touch it for a looong time now :p
    Yesterday I did 4 upgrades, easy ones (I guess ?) and I messed it up. I don't know what happened and why it happened.
    My hosting company suspended my account. After 4 stable months, within some hours I screwed up everything :D. See on here. And this is a lesson for me :p.
     
  20. sepulchre

    sepulchre Member

    145
    22
    18
    Dec 22, 2014
    Ratings:
    +26
    Local Time:
    12:06 AM
    This is so funny. Because a normal noob asks himself in this particular case "How the hell should I know how to setup a test server?". I mean I even can't handle the 1, then I should work on another? I know it is not a good way but I don't do test setups. :D

    But at the end, I am so thankful that CMM is around, that you are around. Yes, maybe I am a noob but this noob could make CMM work and now runs a VPS, which is super fast. Thanks to you. So, my intention is not to moan, I am thankful for all of these things, which is for free...