I'm trying to install Magento CE 2 on AWS following this tutorial:


However, I cannot go to http://IP/magento. I've look on Google and I saw that my /app/etc/env.php does not exist.

I already tried this command:

php bin/magento setup:install --base-url= \
--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \
--admin-firstname=Magento --admin-lastname=User [email protected] \
--admin-user=admin --admin-password=admin123 --language=en_US \
--currency=USD --timezone=America/Chicago --use-rewrites=1

And I got this error:

PHP Fatal error: Uncaught Error: Class 'Locale' not found in /var/www/html/magento/vendor/magento/framework/Locale/Bundle/DataBundle.php:64

How should I proceed to finish this installation?

Many thanks!

2 Answers 2


The guide you are referring is about M1. There is one more mandatory step for M2 - launch composer install in Magento root directory.

Here is a more relevant guide for M2 - http://devdocs.magento.com/guides/v2.2/install-gde/install/cli/install-cli-install.html

Please note, you need to use real AWS URL instead of

Also, M2 has completely different system requirements (php7, mysql,...)

  • Hi, I've installed Magento with this tutorial and I've got this message: "[Progress: 441 / 441] [SUCCESS]: Magento installation complete. [SUCCESS]: Magento Admin URI: /admin_q1qmij Nothing to import." However, I cannot access Magento Admin Page.
    – cmsantos
    Dec 20, 2017 at 13:14
  • Did you specify the right URL during installation? from your example will point http request to your local env (not AWS) Dec 20, 2017 at 14:24
  • I've specified the url like this: http://<IPv4 Public IP>/magento2/
    – cmsantos
    Dec 20, 2017 at 15:40
  • What is the error message? You didn't specify the admin URL and Magento generates it for you - admin_q1qmij. Do you use x.x.x.x/magento2/index.php/admin_q1qmij url for admin? Dec 20, 2017 at 17:02
  • this url x.x.x.x/magento2/index.php/admin_q1qmij it's http error 500. and this url x.x.x.x/magento2/admin_q1qmij it's not found
    – cmsantos
    Dec 20, 2017 at 17:07

Other way to install magento in aws is

Install same version of php in your localserver

Step1. Install magento in localserver
Step2. After that export that database and upload in your aws server
Step3. Copy your whole magento files in your local to aws

Your Answer

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

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