I'm having trouble trying to rebuild my dev environment.
I've installed XAMPP and followed these steps:
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.
Magento is loading, noting that the URL you're using is not the same as what's configured, and redirecting you.
Here are the steps to edit the base URL in the Magento config.
I'm guessing you need to clear the Magento cache mentioned there.
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...
SELECT * FROM core_config_data WHERE value LIKE 'http%'
..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.
Have you checked your htaccess file?
If your local magento store url is like http://magento/ then your Magento dont work, but if your url is like http://magento.local/ - magento store will be working fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With