PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, February 18, 2022

[FIXED] Why does my Magento while opening on MAMP, linking to my Domain?

 February 18, 2022     e-commerce, git, magento, mamp     No comments   

Issue

I am trying to set up my Magento Store (which is currently installed at my cloud hosting server) in local MAMP Server. I want to develop it from now on on my local machine and to push changes using git to the one on my server. I've git cloned my git repository in my htdocs folder. Afterwards I have open MAMP, but I am not able to open my Shop locally using: localhost:8888/my_shop. Every time I run this, Chrome is linking to my Domain on which my Shop is currently running online. How can I solve this? Do I need to change the:

web/unsecure/base_url

and the

web/secure/base_url

on core_config_data in my database? If yes, to which URL should I change these, to localhost:8888/my_shop?

Thank you!


Solution

You can run a query like this to do this for you in all relevant places, especially if you are running multiple websites or stores under same domain. Replace field_name and URLs with actual data (if i recall correctly field_name is value)

UPDATE core_config_data set field_name = replace(field_name, 'http://live.url', 'http://local.url') WHERE field_name LIKE 'http://live.url%';


Answered By - code_burgar
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing