I have migrated a magento 2 install from one server to another. Copied the files, imported db etc. and in developer mode it works fine, all the pages display with the products, the admin portal works etc.
As soon as I put it into production mode nothing works at all. I have tried numerous suggestions the main ones being -
clean the cache and then run "composer install" in the Magento root directory which obviously you shouldn't have to do but it apparently worked for some people.
All I get is an HTML 500 error when in production for both the site and the admin login page. There is nothing in the apache error log file.
I am not experienced with Magento but when in developer mode I was looking at the MAGEROOT/var/log files which were quite helpful. But when in production mode nothing seems to get added to the log files.
Can someone suggest how I can go about debugging this ?
Any and all suggestions welcome.
Thanks
Hello!
try remove paste generated
rm -rf generated/*
After run
bin/magento setup:di:compile
if persist check ur permissions folders.
Verify if is maintenance mode:
to disable maintenance
bin/magento maintenance:disable
U can verify too the app/etc/env.php, follow the doc for creating corretely the env.
https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/files/config-refe...
Finally, check var/log for errors.