I have properly setup Magento 2.3.4 in my localhost. But whenever I try to deploy this to AWS Uuntu Instance I get the following error.

[ERROR] Magento\Framework\Exception\LocalizedException: Area code is not set in /opt/alogic/public_html/vendor/magento/framework/App/State.php:153
Stack trace: 

enter image description here

I have gone through several questions here but haven't found any proper solution.

1 Answer 1


When You Setup on Your Install Magento 2.3.4 . I have seen You have installing third Party Extention. so You can deselect third Party Extention While Installing Magento.After Installation Complete You can Enabled ThirdParty Extention and check it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.