Can not login wp-admin
Hi,
As soon as i installed wordpress with apache virtual host, it said that "The password you entered for the username xxxxx is incorrect. Lost your password?"
https://www.linode.com/docs/guides/how-to-install-wordpress-ubuntu-2004/ i followed this guide.
I managed to install wordpress and everything is fine. When i browse my domain, i can see my content with the default theme. But i am not able to login wp-admin with my user password.
I checked all files and i also reseted my password for wordpress in terminal. But still it is saying the same thing. I pasted my permissions below. Is there something wrong with these to login wp-admin? thank you.
drwxr-xr-x 5 elvang elvang 4096 Apr 22 18:01 .
drwxr-xr-x 3 root root 4096 Apr 6 21:58 ..
-rw------- 1 elvang elvang 7449 Apr 22 18:53 .bash_history
-rw-r--r-- 1 elvang elvang 220 Feb 25 2020 .bash_logout
-rw-r--r-- 1 elvang elvang 3771 Feb 25 2020 .bashrc
drwx------ 2 elvang elvang 4096 Apr 7 20:35 .cache
drwxrwxr-x 3 elvang elvang 4096 Apr 17 11:30 .local
-rw------- 1 elvang elvang 173 Apr 22 18:01 .mysql_history
-rw-r--r-- 1 elvang elvang 807 Feb 25 2020 .profile
drwx------ 2 elvang elvang 4096 Apr 9 11:14 .ssh
-rw-r--r-- 1 elvang elvang 0 Apr 6 23:07 .sudo_as_admin_successful
drwxr-xr-x 5 elvang elvang 4096 Apr 23 14:48 .
drwxr-xr-x 6 elvang elvang 4096 Apr 22 11:41 ..
-rw-r--r-- 1 elvang elvang 523 Apr 22 13:25 .htaccess
-rw-r--r-- 1 elvang elvang 405 Feb 6 2020 index.php
-rw-r--r-- 1 elvang elvang 19915 Jan 1 03:15 license.txt
-rw-r--r-- 1 elvang elvang 7437 Dec 28 20:38 readme.html
-rw-r--r-- 1 elvang elvang 7165 Jan 21 2021 wp-activate.php
drwxr-xr-x 9 elvang elvang 4096 Apr 5 22:13 wp-admin
-rw-r--r-- 1 elvang elvang 351 Feb 6 2020 wp-blog-header.php
-rw-r--r-- 1 elvang elvang 2338 Nov 10 02:07 wp-comments-post.php
-rw-rw-rw- 1 elvang elvang 3405 Apr 23 14:48 wp-config.php
-rw-rw-rw- 1 elvang elvang 3283 Apr 23 14:01 wp-config.php.save
-rw-r--r-- 1 elvang elvang 3001 Dec 14 11:44 wp-config-sample.php
drwxr-xr-x 5 elvang elvang 4096 Apr 23 13:40 wp-content
-rw-r--r-- 1 elvang elvang 3939 Aug 3 2021 wp-cron.php
drwxr-xr-x 26 elvang elvang 12288 Apr 5 22:13 wp-includes
-rw-r--r-- 1 elvang elvang 2496 Feb 6 2020 wp-links-opml.php
-rw-r--r-- 1 elvang elvang 3900 May 15 2021 wp-load.php
-rw-r--r-- 1 elvang elvang 47916 Jan 4 11:30 wp-login.php
-rw-r--r-- 1 elvang elvang 8582 Sep 23 2021 wp-mail.php
-rw-r--r-- 1 elvang elvang 23025 Nov 30 20:32 wp-settings.php
-rw-r--r-- 1 elvang elvang 31959 Oct 25 03:23 wp-signup.php
-rw-r--r-- 1 elvang elvang 4747 Oct 9 2020 wp-trackback.php
-rw-r--r-- 1 elvang elvang 3236 Jun 8 2020 xmlrpc.php
1 Reply
✓ Best Answer
Before you do the following check that you have the permissions correctly entered. Read this:
If making any changes does not work to get you into wp-admin … I'd try the following:
I assume you can SFTP into your server.
I assume you don't have any content in the site since you could never log in to create any.
SFTP into the server and rename the wp-config.php file to something like: wp-config-prev.php.
Then in the browser just go to you domain and I'm sure that it will see that there is no wp-config.php file so it will re-run the install wizard. There you can enter a user name and password. Of course you will have to re-enter your database info… host, username, password, etc.
If that does not work, just delete all the WP files and folders, create a new database (or empty out the one you have with DROP… via phpMyAdmin if you have it installed (if not… install it… there is a Linode guide for it… simple) and do a new install.
I highly recommend you build out the site in either a sub-directory or a sub-domain which you can name "wp1" or something… such that to hit the site's admin area it would be:
example.com/wp1/wp-admin.
You can use a 301 redirect in the .htaccess file to point "example.com" to point to the subdirectory:
Redirect 301 /index.php http://www.example.com/wp1/
Let us know what, if anything works!