[Solved]
Previously I wrote:
I can’t enter the dashboard as well. It leads me to error 404 page with this URL:
…/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F
The problem was that the upgrade.php was blocked at the server level. So I unblocked it, and now I can login without any problem.