I have followed these steps in order to get my live Magento working on my local machine:
- Rsynced all files to my local machine
- Cleared all cached on live site
- Copied the db into my local mysql
- Changed the values in
web/secure/base_urlto the new url (I've created a vhost on my local machine so my website address is www.mymagento.lc)
- Deleted all files in
- Changed the db details in
- Deleted all mentions to my old url in
.htaccessfile (after I made a backup of it)
I've done all that and every time I try to access Magento on my local machine I get redirected to my the live url.
What am I missing?
PS: When I tried to re-index running this command from
php indexer.php --reindexall I get an error saying that Mage can't connect to the db using the credentials (which is slightly different than the ones in
My Magento version is 1.4 (hence I'm moving it to my local machine to update it) and I run PHP projects on my local machine using the techniques described above without issues.