I have moved a Magento install from one server to another. The install is currently still in “testing” and as such was running on a <site_name>.testing.<server_name>.<old_hosting_domain> - and is now under <site_name>.testing.<different_server_name>.<new_hosting_domain>
I have followed a few guides about changing Varien.php, and I have updated the database fields in core_config_data.
The DNS for the new domain works fine, and the main site works fine, however when I try and login to the admin area, it just takes me back to the login screen - although the address bar updates with a URL which looks like I should be at the dashboard.
If I enter invalid credentials, it does show a warning - so that seems to be working fine.
I have also tried resetting the password for the admin, and that process seems to work fine, except I still can’t login.
I’ve had a search on google, and on the forum, and I can’t seem to get anywhere so any help would be appreciated.
I edited Varien.php as suggested in previous posts, and was able to load the dashboard, but every page request in the admin area required me to login again, but actions such as deleting notifications didn’t work.
I’d prefer not to have to edit the main Magento files, as it makes upgrades a pain.
The site was running Mangento 184.108.40.206 I believe. Both servers are running Debian, however the newer one is slightly more up to date - both are running PHP 5.3 and MySQL 5, it;s just minor revisions that are different. The apache setup is identical.
Thanks in advance!
If anyone else is having this issue, after much digging, I discovered the problem.
You need to set:
suhosin.session.encrypt = Off
in php.ini when working with suhosin.
Hope this helps someone else out.