Login error after migrating wrodpress

Hello!

I did a clean install of HestiaCP on Debian, everything perfect.

I create a domain and install wordpress. All perfect.

I use some migration plugin, migrate the content of the website and the website is installed on Hestiacp, everything perfect! I access to wp-admin, and everything ok.

I do the same with another website. I install the domain, ok. I install Wordpress clean, ok. I migrate the website, ok, the website looks perfect. I try to access and … error. I try to access the DB and error.

It is not only with an isolated website, I have 10 websites. Only the first one has been installed correctly. The second and third, give me the same error.

Before they were in Cpanel with Almalinux, with apache. I don’t know if this is relevant, but it’s information.

Any idea what could be the problem?

Hi @clemenza1

Check the logs to find out what the errors are.

If using Nginx, the log is here: /var/log/nginx/domains/YourDomain.error.log
If using Nginx+Apache, the log is here: /var/log/apache2/domains/YourDomain.error.log

There are different reasons for this, from plugins to WP configuration, here it is worth trying not to use the plugin, but to manually transfer both WP and the database. Perhaps there is a database authorization or plugin error somewhere. For example, a login and password error for the database in the WP configuration

I have checked the logs, and they are empty (no errors).

Yes, I have used a different program (updraftplus) and the error does not appear, now everything works fine.

Hi,

No errors about login.

I thought the problem was solved, but only with one website. With the rest of my sites there is this problem.

I have documented the error on video, in case it helps:

Then WP doesn’t like the password. Let’s check the user pass from command line.

For all commands, replace YourUser, YourPassword and YourDomain with the actual data.

First, install wp-cli for your user. If you see this error; Error: For user name 'YourUser' WP-CLI already available!, ignore it and continue.

v-add-user-wp-cli YourUser

Now check if the password is the right one:

cd /home/YourUser/web/YourDomain/public_html/
v-run-cli-cmd YourUser /home/YourUser/.wp-cli/wp user check-password nvidia 'YourPassword' && echo "pass ok" || echo "pass fail"

If the password doesn’t validate, update it:

v-run-cli-cmd YourUser /home/YourUser/.wp-cli/wp  user update nvidia --user_pass='YourPassword'

Now try to validate the password again and if it works, try it from web ui.

Sometimes I think I’m too dumb for this … I don’t know why, I’m always making mistakes.

That’s because you changed the dir to /root/, you should run the command when you are in the document root of your WP installation /home/YourUser/web/YourDomain/public_html/

cd /home/YourUser/web/YourDomain/public_html/
v-run-cli-cmd YourUser /home/YourUser/.wp-cli/wp  user update nvidia --user_pass='YourPassword'

Or you can specify the path in the command itself:

v-run-cli-cmd YourUser /home/YourUser/.wp-cli/wp  user update nvidia --user_pass='YourPassword' --path='/home/YourUser/web/YourDomain/public_html'
1 Like

I’ve been working on this all week!

I even changed the password through terminal forcing in Mariadb, but it didn’t work.

However, this is the solution. It works 100% and now I can finish migrating all my web pages.

Thank you very much!!!

If you come to visit me in the South of Spain, send me a private message, I have a cold beer waiting for you.

3 Likes