1

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

https://comtechies.com/how-to-install-magento-on-amazon-ec2.html

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=http://127.0.0.1/magento2/ \
--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

0

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 http://127.0.0.1

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

9
  • 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
    Commented Dec 20, 2017 at 13:14
  • Did you specify the right URL during installation? 127.0.0.1 from your example will point http request to your local env (not AWS) Commented Dec 20, 2017 at 14:24
  • I've specified the url like this: http://<IPv4 Public IP>/magento2/
    – cmsantos
    Commented 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? Commented 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
    Commented Dec 20, 2017 at 17:07
0

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 you have read our privacy policy.

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