Migrated Wordpress Can't login to Backend

Hey so I moved my website from bluehost to a 2GB Ram Server using duplicator plugin, Installed EE and wordpress site with w3tc. The site is openning fine but sometimes I can login to the dashboard and sometimes I can’t. Keeps refreshing or sometimes goes in to the dashboard and keeps logging me out.

The domain.com/wp-admin redirecting to http://www.domain.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.domain.com%2Fwp-admin%2F&reauth=1

Tried resetting the plugins, theme, clearing cache and cookies,deleted the .htaccess still the same.

Any advice?

Thanks

@wyamout,

Is the domain name pointing to your new (2 GB RAM) server same that was pointing to bluehost server.

You can use ee debug to debug your issue.

Hey thank you for your reply, yes it is pointed the site is running fine… just not the backend…

I found this in the error log:

 [error] 5075#0: *49008 limiting requests, excess: 1.200 by zone "one", client: 78.160.251.112, server: domain.com, request: "GET /wp-login.php HTTP/1.1", host: "www.domain.com"

@wyamout

EasyEngine added this to protect wordpress from Brute-Force attack

By default EasyEngine allow 1request/sec to wp-config.php

You can find following lines in your /etc/nginx/nginx.conf

# Limit Request
limit_req_status 403;
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;

Also you can find following lines in your /etc/nginx/common/wpcommon.conf

# Limit access to avoid brute force attack
location = /wp-login.php {
	limit_req zone=one burst=1 nodelay;
	include fastcgi_params;
	fastcgi_pass php;
}