Learn about Centmin Mod LEMP Stack today
Register Now

Wordpress wp-login.php HTTP password protection details ?

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

  1. kilotig

    kilotig New Member

    Nov 29, 2018
    Local Time:
    7:37 AM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    10:37 PM
    Nginx 1.21.x
    MariaDB 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