cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 migrate server prod to localhos

Highlighted

Magento 2 migrate server prod to localhos

Hello, 

i'm here to ask help. 

I've a little problem very weird. I need to make a modification on Magento website so i've upload all file and create a dump of the database (production) to create on local the copy on the website. 

i create data base and import the dump, i 'have folder with the magento project and my MAMP works perfectly. 

I also change the file env.php to connect to the local database and i've make this "http://127.0.0.1/Servercopy/" and https://127.0.0.1/Servercopy/ for this 2 line : web/unsecure/base_url  and web/secure/base_url on table core_config_data
i also test with localhost and i also modify ma MAMP to connect directly to the folder Servercopy

I always the same error when i try to go to : "http://127.0.0.1/Servercopy/"
i 've HTTP ERROR 500

someone have an idea ? 

thanks for help me. 

3 REPLIES 3
Highlighted

Re: Magento 2 migrate server prod to localhos

Hi @masteraf1g996c,

Enable the error reporting in the following file. 


app/bootstrap.php

Un-comment the below line.

ini_set('display_errors', 1);


I hope it will help you!

----
Problem solved? Click Accept as Solution!
Highlighted

Re: Magento 2 migrate server prod to localhos

Hello @masteraf1g996c 

 

Please follow the below steps to resolve this

 

1. Check with .htaccess if missing than please add it if there than please try to check it or use default magento .htaccess file

2. Please check mode_rewrite mod enable in your localhost

3. if you still facing issue than please check permission of your files and folders.

4. Please run below commands

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

 

Let me know if any issues

 

If my answer is useful, please Accept as Solution & give Kudos

 

Thank you

Aims Infosoft

Re: Magento 2 migrate server prod to localhos

Hello @masteraf1g996c 

 

 

Please check var/log file of lamp.

 

find path of log file apache2 or nginx and check error.log for same.

 

Hope it will help you.