I want to Build a new AWS EC2 centos webserver with the best configuration for Magento2 ?

there is any clear steps or script?

Regards, Ahmed

  • is it PROD or DEV environment you're referring at? in any case it depends on what your needs/objectives are. perfect configuration is a wide thing to think at as it consists of many aspects such as: performance, security, scalability just to name a few. – Radu Apr 9 '20 at 15:30

The basic steps is to use it via nginx or httpd and mysql for database

for more configuration its depends on your traffic and your magento store.


  • To add to this how much you are prepared to spend – Dominic Xigen Apr 9 '20 at 20:24

as you asking for a script, you can test this one:


curl -LO magenx.sh/magenx.sh

it is not the best/perfect but you can look at different angle. but perfect and best it all depends on your skills. if you know about webstack you can build anything you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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