Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Remove authentification before wordpress admin login

Discussion in 'Blogs & CMS usage' started by hkim, Jul 11, 2020.

  1. hkim

    hkim New Member

    28
    3
    3
    Feb 14, 2019
    Ratings:
    +4
    Local Time:
    11:07 AM
    I need to remove the authentification process before the wordpress admin login. See clip:

    ex.JPG

    How can I remove this? This is creating problems when I'm trying to access a migrated site since the old credentials are not accepted on the new server.
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,780
    10,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,828
    Local Time:
    7:07 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    When you run centmin.sh menu option 22 to create a Nginx based Wordpress site, there will be at end of the process all the relevant login details provided. If you answered yes to HTTP password protect login wp-login.php then those user/password details will be at end of centmin.sh menu option 22 run. As with all centmin.sh menu options logs are automatically saved at /root/centminlogs. So at end of centmin.sh menu option 22 run it will tell you were the log was saved.

    example at /root/centminlogs/centminmod_123.09beta01.b203_120719-221749_wordpress_addvhost.log
    Code (Text):
    -------------------------------------------------------------
    vhost for domain.com wordpress setup successfully
    domain.com setup info log saved at:
    /root/centminlogs/centminmod_123.09beta01.b203_120719-221749_wordpress_addvhost.log
    -------------------------------------------------------------
    

    You can search for all the logs via grep filter below
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep '_wordpress_addvhost.log'

    or find command
    Code (Text):
    find /root/centminlogs/ -type f -name "*_wordpress_addvhost.log"
    

    example output
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep '_wordpress_addvhost.log'
    -rw-r--r--   1 root root  21K Feb  3 22:29 centminmod_123.09beta01.b421_030220-222801_wordpress_addvhost.log
    -rw-r--r--   1 root root  26K Apr 15 21:26 centminmod_123.09beta01.b490_150420-211636_wordpress_addvhost.log
    

    Code (Text):
    find /root/centminlogs/ -type f -name "*_wordpress_addvhost.log"
    /root/centminlogs/centminmod_123.09beta01.b421_030220-222801_wordpress_addvhost.log
    /root/centminlogs/centminmod_123.09beta01.b490_150420-211636_wordpress_addvhost.log
    


    To reset Wordpress wp-login.php HTTP password created by centmin.sh menu option 22 wordpress auto installer, you can use htpasswd.sh script
    Code (Text):
    vhostname=yourdomain.com
    /usr/local/nginx/conf/htpasswd.sh create /home/nginx/domains/$vhostname/htpasswd_wplogin USERNAME PASSWORD
    

    where, you change USERNAME to your desired username and PASSWORD to your password and change yourdomain.com to your wordpress site's domain name

    then restart nginx
    Code (Text):
    ngxrestart

    Or if you want to disable http password protection comment out both these lines
    Code (Text):
       auth_basic "Private";
       auth_basic_user_file /home/nginx/domains/demodomain.com/htpasswd_wplogin;
    

    like
    Code (Text):
       #auth_basic "Private";
       #auth_basic_user_file /home/nginx/domains/demodomain.com/htpasswd_wplogin;
    

    then restart nginx