Join the community today
Register Now

Wordpress cant login with the admin credentials, fresh install

Discussion in 'Blogs & CMS usage' started by blankdot, Aug 30, 2024.

  1. blankdot

    blankdot New Member

    5
    0
    1
    Aug 30, 2024
    Ratings:
    +0
    Local Time:
    1:46 PM
    I login with my admin (/wp-admin) details (tried both username, email) and password (reinstalled several times, and tried all password and username generating options) but i cant enter into the admin panel. it just dont accept my login credentials, i just get up the login window again without any error message or anything.


    * Current Nginx Version: 1.27.1 (290824-172851-rockylinux9-kvm-4c94d3b)
    * Centmin Mod Menu 131.00stable centminmod.com
    * keycdn cache

    Wp installed with option 22 in the menu.

    What do i start with to find the error? Please point me in the right direction to be able to figure this out if possible =)

    I get the maintenance page in the background of the credentials box sometimes after i tried to log in...
     
    Last edited: Aug 30, 2024
  2. blankdot

    blankdot New Member

    5
    0
    1
    Aug 30, 2024
    Ratings:
    +0
    Local Time:
    1:46 PM
    Last edited: Aug 30, 2024
  3. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    9:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah it could be related to Cloudflare HTTPS settings. If you selected centmin.sh menu option 22 with default HTTPS then, Cloudflare SSL mode should be set to Full or Full Strict mode and you can disable Cloudflare always use HTTPS or non-HTTPS to HTTPS redirect at Cloudflare level. Or if you want to keep Cloudflare always use HTTPS and non-HTTPS to HTTPS redirect, then edit your Nginx vhost config files to disable the non-HTTPS to HTTPS redirect outlined at Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS, AlmaLinux, Rocky Linux
     
  4. blankdot

    blankdot New Member

    5
    0
    1
    Aug 30, 2024
    Ratings:
    +0
    Local Time:
    1:46 PM
    Rocky 9
    131.00stable
    php8.3
    cloudflare set to "Full (Strict)" and "Origin Pulls" active
    I have issued certificates with opt3 when i was running opt22 to install the server
    Code:
    Type: A
    Name web.se
    80.34.216.xxx
    Proxied
    
    Type: A
    Name www
    80.34.216.xxx
    
    Proxied
    


    Im missing some information due to confusion between different versions of the script and generated files, what should i do correctly set up /usr/local/nginx/conf/conf.d/?
    web.se.conf-disabled
    web.se.ssl.conf
    virtual.conf

    Code:
    web.se.ssl.conf -->
    # Centmin Mod Getting Started Guide
    # must read https://centminmod.com/getstarted.html
    # For HTTP/2 SSL Setup
    # read https://centminmod.com/letsencrypt-freessl.html
    
    # redirect from www to non-www  forced SSL
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
     server {
       server_name web.se www.web.se;
        return 302 https://$server_name$request_uri;
     }
    
    server {
      listen 443 ssl http2 reuseport;
     
      server_name www.web.se;
    
      include /usr/local/nginx/conf/ssl/web.se/web.se.crt.key.conf;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # cloudflare authenticated origin pull cert community.centminmod.com/threads/13847/
      ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare/web.se/origin.crt;
      ssl_verify_client on;
      
    Code:
    curl -I http://web.se
    HTTP/1.1 302 Moved Temporarily
    Date: Sun, 01 Sep 2024 06:39:21 GMT
    Content-Type: text/html
    Content-Length: 138
    Connection: keep-alive
    Location: https://web.se/
    Server: nginx centminmod
    X-Powered-By: centminmod
    

    When i try to login to the web.se/wp-admin
    im getting
    Code:
    https://web.se/wp-login.php?redirect_to=https%3A%2F%2Fweb.se%2Fwp-admin%2F&reauth=1
     
    Last edited by a moderator: Sep 1, 2024
  5. blankdot

    blankdot New Member

    5
    0
    1
    Aug 30, 2024
    Ratings:
    +0
    Local Time:
    1:46 PM
    Code:
    curl -I https://web.se
    HTTP/2 200
    date: Sun, 01 Sep 2024 08:24:37 GMT
    content-type: text/html; charset=utf-8
    last-modified: Sun, 01 Sep 2024 05:46:39 GMT
    vary: Accept-Encoding
    x-powered-by: centminmod
    x-xss-protection: 1; mode=block
    x-content-type-options: nosniff
    cf-cache-status: DYNAMIC
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=GXiTvJRRwDiBb1pEpBQxlxQpDCnR3QSa0jWf5mClOC98Q6Iy8ejRibXGxZ4wr0HT6P%2BylVqapjdV8jEpPapkdbWaWGZkUYV2%2FzX7NQv9HXAmxbSMm2x%2B0m91%2Fv%2FAIg%3D%3D"}],"group":"cf-nel","max_age":604800}
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    server: cloud flare
    cf-ray: 8bc3dd71cea62172-MAD
    alt-svc: h3=":443"; ma=86400
    
    Code:
    curl -I https://www.web.se
    HTTP/2 301
    date: Sun, 01 Sep 2024 08:25:42 GMT
    content-type: text/html; charset=UTF-8
    location: https://web.se/
    x-redirect-by: WordPress
    x-powered-by: centminmod
    x-xss-protection: 1; mode=block
    x-content-type-options: nosniff
    cf-cache-status: DYNAMIC
    report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=tzhLK8Gigxu%2B9b%2Ft4qGm24ymL16rtdSVNleD54yVelEigrkcoi5dny75pe70tDmFXvuS9cBzQHODkyU1pCTkTlOE6gR1riMW5k3zwF0%2BtbC8%2BEdBVSt02A%2F1HKy6JALi8JM%3D"}],"group":"cf-nel","max_age":604800}
    nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    server: cloudflare
    cf-ray: 8bc3df09593dc901-MAD
    alt-svc: h3=":443"; ma=86400
    Code:
    curl -I http://web.se
    HTTP/1.1 302 Moved Temporarily
    Date: Sun, 01 Sep 2024 08:27:02 GMT
    Content-Type: text/html
    Connection: keep-alive
    Location: https://web.se/
    X-Powered-By: centminmod
    CF-Cache-Status: DYNAMIC
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=RF8O7wcdViqIDCNGY%2FDvEG6wM4rBnmghHL3TW0%2Fip1vDf32MVW4X%2FmlpAVVX7wYbBTXTeP4q8%2BqglmBLCnynuYi8oE6nPKepNb6%2BesZmo9V3LLOG%2BiDPuovlidP3Bw%3D%3D"}],"group":"cf-nel","max_age":604800}
    NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 8bc3e0fd49ab2fcb-MAD
    alt-svc: h3=":443"; ma=86400
    Code:
    curl -I http://www.web.se
    HTTP/1.1 302 Moved Temporarily
    Date: Sun, 01 Sep 2024 08:28:10 GMT
    Content-Type: text/html
    Connection: keep-alive
    Location: https://web.se/
    X-Powered-By: centminmod
    CF-Cache-Status: DYNAMIC
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=%2BUfiy3yqJEWWhK3HU19coecmhOFa45E%2BSvV8HFT0pAHOeaVl3D1sdLqlCIlCN47ZwuC5PJjUz8sCVh1cGZINtYMKL5PEAV6lK%2Fk8eixNkgNIDcyVcoafP8VYrNNRn9X%2BzhQ%3D"}],"group":"cf-nel","max_age":604800}
    NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 8bc3e2a41e936611-MAD
    alt-svc: h3=":443"; ma=86400
    from my logfile
    Code:
    2024/09/01 08:37:24 [error] 1826#1826: *123 user "MboX000" was not found in "/home/nginx/domains/web.se/htpasswd_wplogin", client: 100.158.120.100, server: www.web.se, request: "GET /wp-login.php?redirect_to=https%3A%2F%2Fweb.se%2Fwp-admin%2F&reauth=1 HTTP/2.0", host: "web.se"
     
    Last edited: Sep 1, 2024
  6. eva2000

    eva2000 Administrator Staff Member

    53,247
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    9:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    You can see an explanation of Centmin Mod config file/directory structure at Centmin Mod Configuration Files - CentminMod.com LEMP Nginx web stack for CentOS, AlmaLinux, Rocky Linux

    is web.se just a dummy domain to mask your real domain as testing domain at https://tools.keycdn.com/curl gives host not found error.

    Usually when you log into Wordpress it would be at https://web.se/wp-login.php not https://web.se/wp-admin/. What do you get when you try log in from https://web.se/wp-login.php

    When you ran centmin.sh menu option 22 to auto install Wordpress did you answer yes to HTTP Password protect /wp-login.php? See https://community.centminmod.com/th...efore-wordpress-admin-login.20003/#post-84907