Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress wp-login.php HTTP password protection details ?

Discussion in 'Blogs & CMS usage' started by kilotig, Nov 30, 2018.

  1. kilotig

    kilotig New Member

    4
    1
    3
    Nov 29, 2018
    Ratings:
    +1
    Local Time:
    12:56 AM
    1.15.7
    10.0.37
    I'm not sure where to post this question. For now, I will place it here. I have installed a WP site on Linode using Centminmod. When I'm about to log in to the admin area (wp-login.php), I don't know why it was asking me to input a username and a password. Where can I get this information? Thank you.
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,227
    8,133
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,521
    Local Time:
    4:56 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You are referring to Nginx HTTP password protection for wp-login.php which you can opt to enable or not at centmin.sh run time. Each centmin.sh menu option 22 wordpress installation, will automatically log the details in /root/centminlogs at /root/centminlogs/centminmod_*_wordpress_addvhost.log based log where * is the centminmod version and date timestamp. You will fin

    Example list /root/centminlogs files in date ascending order and grep for wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    

    example output returns log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep wordpress_addvhost.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_wordpress_addvhost.log
    

    You will find the HTTP password/username in there
     
..