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
core_config_data
underweb/unsecure/base_url
andweb/secure/base_url
to the new url (I've created a vhost on my local machine so my website address is www.mymagento.lc) - Deleted all files in
var/cache
andvar/session
- Changed the db details in
app/etc/local.xml
- Deleted all mentions to my old url in
.htaccess
file (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 mysite/shell
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 app/etc/local.xml
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.
_www:_www
which is the apache user under OS X./tmp
. I've also managed to re-index and restarted my machine and yet I still get redirected. I'm at my wit's end now... Any more suggestions?