Want to subscribe to topics you're interested in?
Become a Member

Wordpress Wordpress Option 22

Discussion in 'Blogs & CMS usage' started by speedway, Dec 1, 2015.

Tags:
  1. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    1:37 PM
    None
    None
    Wanted to ask why we are not asked for the wordpress admin user and password, the versions produced have no way of being remembered by this aging user.

    I already have a wordpress site on my old server that I will be copying across and I thought I could just add parts of it to this new install. However, as per wordpress, you cannot change the password or admin user name after the install so apart from installing all the goodies via centmin mod I can't use the install due to the weird username and password.

    Thats is unless you know of some underhand way of reissuing the admin user/password combo after the install....

    Cheers
    Bruce
     
  2. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:37 PM
    latest
    10
    Navigate to: /usr/local/nginx/conf/conf.d/yourdomain.com.conf
    Comment all from:
    TO:

    Hit Ctrl + x and save the file
    then type in: nprestart

    then type in
    which will create a new user for you. The above directions will disable the htaccess authentication.

    When you selected menu option 22, it should have prompted you to type in your email address. All of the info you need is in that email.
     
    • Informative Informative x 1
  3. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    1:37 PM
    None
    None
    HI Matt

    I'm not too worried about that side of it, the finishing docs explained how to change all that. It is the actual WP admin user and password that the script creates, for example (and now no longer existing) the admin user was z3rPUYwEd5J6NAYdRRnwp28941 and the password was zsYabjMsq1Ywps4809. How anyone is supposed to remember all that is beyond me and why does it have to that exotic when the htpasswd side of it exists as well?. My personal passwords aren't as exotic but are still damn strong and as far as I am concerned strong enough to withstand a fairly tough test.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice info @Matt Williams (y)

    @speedway when you finish centmin.sh option 22 outlined at Wordpress Nginx Auto Installer (WP Super Cache) you will get the info outputted and part of that is wordpress admin user info including a link to i.e. http://ueZ7ghBHIxMlTnx6972:pTRnQhwn6Vin6o6mRlY2y6972@newdomain2.com/wp-login.php which can be bookmarked so you do not need to enter wp admin user/pass :) It's done this way for better security out of the box.

    Code:
    ------------------------------------------------------------
    Wordpress Auto Updater created at:
      /root/tools/wp_updater_newdomain2.com.sh
    cronjob set for every 8 hours update (3x times per day)
    ------------------------------------------------------------
    
    Wordpress domain: newdomain2.com
    Wordpress DB Name: wp20480db_8333
    Wordpress DB User: wpdb8333u21571
    Wordpress DB Pass: wpdbskyTckdBbFJSp7982
    Wordpress Admin User ID: 265902
    Wordpress Admin User: zfDawCEvFRqn0U4VQ+wp28801
    Wordpress Admin Pass: zNOnATs3Mutwps15760
    Wordpress Admin Email: MY@EMAILADDRESS
    
    Wordpress wp-login.php password protection info:
    wp-login.php protection file /home/nginx/domains/newdomain2.com/htpasswd_wplogin
    wp-login.php protection Username: ueZ7ghBHIxMlTnx6972
    wp-login.php protection Password: pTRnQhwn6Vin6o6mRlY2y6972
    http://ueZ7ghBHIxMlTnx6972:pTRnQhwn6Vin6o6mRlY2y6972@newdomain2.com/wp-login.php
    As to changing wp admin user details, use wp-cli tool run within your WP install directory i.e. /home/nginx/domains/newdomain2.com/public. See wp user update | WP-CLI But seems only user id, password or email can be updated this way. Username doesn't allow change via wp-cli users - How to change user_login with wp-cli? - WordPress Development Stack Exchange

    But you can use straight mysql update commands via wp-cli too to change usernames. Where mary_old is old username and mary_new is new username. Also run within your WP install directory i.e. /home/nginx/domains/newdomain2.com/public
    Code:
    wp db query "UPDATE wp_users u, ( SELECT COUNT(*) as number_of_same_login_users FROM wp_users WHERE user_login = 'mary_new' ) tmp SET u.user_login = 'mary_new' WHERE u.user_login = 'mary_old' AND tmp.number_of_same_login_users = 0"
    There's also various WP Plugins installable which allow changing the wp usernames or you can manually create a new wp admin username and remove the original too :)

    HTH
     
  5. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:37 PM
    latest
    10
    @speedway , Just put it in once and then either save it to your browser or make a new one when you log into your WP admin. My gripe is the amount of plugins installed off the bat. I wish there was an option to install or not install them - but that's for a different post topic ;) I'm just happy that @eva2000 has provided all of us such a wonderful software product so I don't complain lol!
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    well there's no one wp plugin that is auto installed that I don't find useful for security and performance. Was hoping end users felt the same way heh.

    I use them all centminmod/wpsetup.inc at 123.08stable · centminmod/centminmod · GitHub :D

    maybe start a new thread to list whish wp plugins you don't use :)
     
  7. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    9:37 PM
    latest
    10
  8. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    started thread at Wordpress - Which Wordpress Plugins use / don't use centmin.sh menu option 22 | Centmin Mod Community but interesting will have to check those out too :D

    Oh and need benchmark stats comparisons ;)
     
  9. speedway

    speedway Member

    30
    12
    8
    Nov 28, 2015
    Ratings:
    +16
    Local Time:
    1:37 PM
    None
    None
    Wow, so much happening :) Thanks guys, more knowledgeable now on the working of the Wordpress install.
     
  10. danielsl

    danielsl New Member

    20
    2
    3
    Nov 7, 2014
    Ratings:
    +3
    Local Time:
    5:37 AM
    centminmod 123.09beta01
    5.5
    Unfortunately stack here.

    even i m trying to log via auto generated log:pass to wp-admin. it doesnt accept credential as valid. I have to reset login attemps via sql (UPDATE 23727_options SET option_value = '' WHERE option_name = 'limit_login_lockouts')


    also i.m not able to use above advice - wp user create-
    i simply get
    ------------
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Error: YIKES! It looks like you're running this as root. You probably meant to run this as the user that your WordPress install exists under.

    If you REALLY mean to run this as root, we won't stop you, but just bear in mind that any code on this site will then have full control of your server, making it quite DANGEROUS.

    If you'd like to continue as root, please run this again, adding this flag: --allow-root

    If you'd like to run it as the user that this site is under, you can run the following to become the respective user:

    sudo -u USER -i -- wp <command>

    ----------------------------------

    sudo is not available also
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    which version of centmin mod 123.08stable or 123.09beta01 ?
    try recompile php via centmin.sh menu option 5 first to recompile redis php extension but do update centmin mod 123.08stable or 123.09beta01 to latest code before you do

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. 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. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    sudo isn't fully supported in 123.08stable branch only in 123.09beta01 so use full root user instead
     
  13. danielsl

    danielsl New Member

    20
    2
    3
    Nov 7, 2014
    Ratings:
    +3
    Local Time:
    5:37 AM
    centminmod 123.09beta01
    5.5
    had to update 09beta01 issue resolved.
    still
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    no idea how to solve

    i initially upgraded from 07->08->09

    how to compile redis? from the point that i have already updated to 09beta?
    -----------------------
    centos 6.5 123.09beta01 php 7.0.1
     
    Last edited: Mar 30, 2016
  14. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    type command in SSH to find path to redis.ini file
    Code (Text):
    php --ini

    then delete the /etc/centminmod/php.d/redis.ini file
    Code (Text):
    rm -rf /etc/centminmod/php.d/redis.ini

    restart php-fpm to remove error but redis php extension will be missing

    if you need redis php extension, then recompile php via centmin.sh menu option 5 again and double check redis php extension .ini settings file exists afterwards at /etc/centminmod/php.d/redis.ini and that redis php extension is loaded by php via these commands
    Code (Text):
    php --ri redis
    php -m
     
  15. danielsl

    danielsl New Member

    20
    2
    3
    Nov 7, 2014
    Ratings:
    +3
    Local Time:
    5:37 AM
    centminmod 123.09beta01
    5.5
    seems solved-------------------->

    thanks a lot.
    could not be done easier:)
     
    • Like Like x 1
  16. eva2000

    eva2000 Administrator Staff Member

    30,884
    6,907
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,401
    Local Time:
    12:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for confirmation :)