I’m having trouble trying to rebuild my dev environment.
I’ve installed XAMPP and followed these steps:
- Backup MYSQL DB.
- Backup Home Directory.
- Create DB with same user/dbname
- Imported SQL file successfully, and imported home directory (and invisible files) into htdocs.
- Verified that base_url and secure_base_url are set to “http://magento.local” (I have tried http://127.0.0.1, also)
- Deleted all Cache/Sessions
How can i get http://magento.local to just display my local website, instead of reverting to the live URL?
I have edited my base_urls, and even the cookie url.
The way I always do it is as follows…
Search the core_config_data table for ANY fields that are URLs, which you can do by running…
..or simply using phpMyAdmin if you have it available. One of our main sites has a total of about 8 rows to be updated (possibly not all required, could be left from older versions it was running on). If you see your live URL simply change it out for your local address.
Then open you cache folder and delete any files starting with mage–*. The thing that normally ends up catching me out at this point is file permissions. I don’t know what OS you are using, so I can’t tell you how to check, but if the apache user doesn’t have write permissions to the cache folder the first time you accessed the site, Magento creates most of the files normally created in the DOCUMENT_ROOT/var folder in the OS’s temp directory. For example, we use Mac OSX at work, it will create the cache files in /tmp/magento/, upon deleting that directory you should be good to go.
NB: You should probably update the file permssions of the var directory before viewing the site again, otherwise it will keep writing to the temp directory, which will trip you up again in the future.