Discover Centmin Mod today
Register Now

Wordpress Wordpress login issue

Discussion in 'Blogs & CMS usage' started by inthecloudblog, Jul 2, 2016.

  1. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    Hi guys I have chosen the 22 option and after going through the following ( to grab the wp login) :
    centminmod_1.2.3-eva2000.08_020716-000743_wordpress_addvhost.log


    I'd been able to have the "alert" login which leads me to the following (classic) login textboxes.

    http://i.imgur.com/t9np3kW.png

    I tried reentering the password from the log but it won't work.

    Tried the password retrieval option placing my email and never received a thing.

    Ideas? Suggestions?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    What was the auto generated password for wordpress ? you can try changing wordpress installs admin password using wpcli tool in SSH do the following

    change to wordpress install directory and run the wp change password command as outlined at wp user update

    change password for userid = 1 for site domain.com
    Code (Text):
    cd /home/nginx/domains/domain.com/public
    wp user update 1 --user_pass=MYNEWPASS
    

    you can also use the username or email instead of userid
    Code (Text):
    <user>…
    The user login, user email or user ID of the user(s) to update.
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6

    wp myemail@gmail.com update 1 --user_pass=pass --allow-root
    Error: 'myemail@gmail.com' is not a registered wp command. See 'wp help'.
     
  5. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
  6. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Code (Text):
    wp user update YOUREMAIL --user_pass=MYNEWPASS
     
  7. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    Success: Updated user xxxxx.
     
  8. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    this Fu** thing flies. You nailed it George!

    Appreciate it!
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes if it was any faster, it would have wings :D
     
  10. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    I followed this password changing thing and it somehow worked :

    Success: Updated user 195043.


    but I get this:

    [​IMG]

    and then:

    401 Authorization Required
    nginx
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you have wp admin login password + nginx http authentication password (.htaccess equivalent) if you use centmin.sh menu option 22 to auto install wordpress

    /root/centminlogs/ should have one log for wordpress install with the login info
     
  12. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    I tried a fast search here and found nothing that worked:

    nano centminmod_1.2.3-eva2000.08_120816-204518_wordpress_addvhost.log
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    When you create a new nginx vhost domain via centmin.sh menu option 2 or menu option 22 or via /usr/bin/nv cli command line, you will create the Nginx vhost files and directories. You will get an outputted the path location where it will create the domain name's vhost conf file named newdomain.com.conf (and newdomain.com.ssl.conf if you selected yes to self signed SSL)
    • Nginx vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.conf
    • Nginx HTTP/2 SSL vhost conf path will be at /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf
    • Nginx Self-Signed SSL Certificate Directory at /usr/local/nginx/conf/ssl/newdomain.com
    • Vhost public web root will be at /home/nginx/domains/newdomain.com/public
    • Vhost log directory will be at /home/nginx/domains/newdomain.com/log
    Please post the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)
     
  14. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    I'll do it tonight when I come back from uni.
    Appreciate it
     
  15. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
     
  16. JarylW

    JarylW Active Member

    216
    41
    28
    Jun 19, 2014
    Singapore
    Ratings:
    +103
    Local Time:
    10:55 AM
    For me I just comment out auth_basic lines. It is sufficient if you have 2FA or strong passwords imo.

    Code:
    location ~* /(wp-login\.php) {
    limit_req zone=xwplogin burst=1 nodelay;
    #limit_conn xwpconlimit 30;
    #auth_basic "Private";
    #auth_basic_user_file /home/nginx/domains/str***.comhtpasswd_wplogin;
    include /usr/local/nginx/conf/php-wpsc.conf;
    }
    Restart php and nginx after
    Code:
    [root@server ~] nprestart
    If you wish to keep htpasswd, then just look for the file /home/nginx/domains/str***.comhtpasswd_wplogin and edit accordingly
     
  17. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    Hi guys, again I face the same issue:

    tried commenting as @JarylW mentioned
    also tried what George and I get this:


    Code:
    user update @gmail.com --user_pass=xxxx --allow-root
    Error: This does not seem to be a WordPress install.
    Pass --path=`path/to/wordpress` or run `wp core download`.
    I guess I'm missing the way to figure out the path.
     
  18. eva2000

    eva2000 Administrator Staff Member

    55,445
    12,257
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,841
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    command at Wordpress - Wordpress login issue | Centmin Mod Community needs to be run from within wordpress install directory
     
  19. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    Code:
    Success: Updated user 290362.
    seems I'm locked out for 20 mins though
     
  20. inthecloudblog

    inthecloudblog Active Member

    199
    36
    28
    Jan 26, 2016
    Ratings:
    +83
    Local Time:
    11:55 PM
    1.4.6
    VPN made it thanks George!