{"id":19994,"date":"2025-06-16T12:51:01","date_gmt":"2025-06-16T12:51:01","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=19994"},"modified":"2026-03-20T11:52:08","modified_gmt":"2026-03-20T11:52:08","slug":"magento-ami-installer-user-guide","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/","title":{"rendered":"Magento AMI Installer &#8211; User Guide"},"content":{"rendered":"\n<p>This Magento AMI walks you through using the Magento auto-installer script (magento_installer.sh) to deploy a Magento site with Apache\/Nginx, MySQL, and SSL on an AWS EC2 instance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Prerequisites<\/strong> For Magento AMI Installer<\/h3>\n\n\n\n<p>This AMI comes pre-configured with all required software and Magento source code. Before using the installer, ensure the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You launch the EC2 instance using the Magento AMI.<\/li>\n\n\n\n<li>The auto-installer script is available at: \/home\/ubuntu\/magento_installer.sh<\/li>\n\n\n\n<li>The system pre-installs and configures Apache\/Nginx, MySQL, Elasticsearch, OpenJDK 17, PHP  and the required PHP extensions.<\/li>\n\n\n\n<li>The system has already placed the Magento source code under: \/var\/www\/html\/ or \/var\/www\/html\/magento2\/<\/li>\n\n\n\n<li><strong>DNS:<\/strong> Your domain must point to the EC2 public IP (A record set)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Installation Steps<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Run the Script<\/strong><br><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo bash magento_installer.sh<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/06\/login-and-run-the-script-2.webp\" alt=\"Login and run Magento AMI script\" class=\"wp-image-496248\" style=\"width:820px;height:auto\"\/><\/figure>\n\n\n\n<p>The system will prompt you to enter the following inputs:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MySQL Credentials<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Database name <\/strong>(e.g. magento_db)<\/li>\n\n\n\n<li><strong>Database user<\/strong> (e.g. magento_user)<\/li>\n\n\n\n<li><strong>Database password<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-dominant-color=\"330e27\" data-has-transparency=\"false\" style=\"--dominant-color: #330e27;\" loading=\"lazy\" decoding=\"async\" width=\"1146\" height=\"359\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/06\/fill-db-details.webp\" alt=\"fill database details\" class=\"not-transparent wp-image-19996\"\/><\/figure>\n\n\n\n<p>Additionally, the script will create the DB and user automatically if they don\u2019t exist.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Domain Validation<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter your domain (e.g. example.com)<\/li>\n\n\n\n<li>The script will check if the domain points to this server\u2019s public IP.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/06\/fill-correct-domain.webp\"><img data-dominant-color=\"37132c\" data-has-transparency=\"false\" style=\"--dominant-color: #37132c;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/06\/fill-correct-domain-1024x256.webp\" alt=\"fill-correct-domain\" class=\"not-transparent wp-image-19997\"\/><\/a><\/figure>\n\n\n\n<p>If domain matches, installation proceeds.<br><br>If the domain doesn&#8217;t match, the system will ask you to try again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Magento Installation<\/strong><\/h3>\n\n\n\n<p>Once the domain check passes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento setup will run silently in the background.<\/li>\n\n\n\n<li>A <strong>spinner<\/strong> will indicate progress.<\/li>\n\n\n\n<li>It typically takes <strong>few minutes<\/strong>.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-dominant-color=\"35112a\" data-has-transparency=\"false\" style=\"--dominant-color: #35112a;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"303\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2025\/06\/installing-mangento1.webp\" alt=\"installing-mangento.webp\" class=\"not-transparent wp-image-20004\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Apache\/Nginx Virtual Host &amp; SSL<\/strong>Path<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A VirtualHost config will be created for port 80 and 443.<br><\/li>\n\n\n\n<li>Apache\/Nginx will reload.<br><\/li>\n\n\n\n<li><strong>Let&#8217;s Encrypt SSL<\/strong> will be automatically issued using Certbot.<br><\/li>\n\n\n\n<li>Your site will be accessible over HTTPS.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Credentials<\/strong><\/h3>\n\n\n\n<p>At the end, the following will be saved at the mentioned directory<\/p>\n\n\n\n<p>&#8212;&#8211;&gt;   \/home\/ubuntu\/magento_admin_credentials_&lt;your-domain&gt;.txt<\/p>\n\n\n\n<p>Contents include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Magento Store URL (e.g. https:\/\/example.com)<\/li>\n\n\n\n<li>Magento Admin URL (e.g. https:\/\/yourdomain.com\/admin_xxxxxx)<\/li>\n\n\n\n<li>Magento Admin Username &amp; Password<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/06\/magento-installation-is-done-1.webp\" alt=\"magento-installation-is-done.webp\" class=\"wp-image-496230\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example Output<\/strong><\/h3>\n\n\n\n<p>Magento 2.4.2 + SSL Installed Successfully!<\/p>\n\n\n\n<p>Store URL: https:\/\/example.com<\/p>\n\n\n\n<p>Admin URL: https:\/\/example.com\/admin_Kf93pL<\/p>\n\n\n\n<p>Admin User: admin<\/p>\n\n\n\n<p>Admin Password: PASSWORD<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Disable 2-Factor-Authentication<\/strong><\/h3>\n\n\n\n<p>After login to admin page run the below command to disable two_factor_authentication<\/p>\n\n\n\n<p>for Apache:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo cd \/var\/www\/html\/\nsudo php bin\/magento module:disable Magento_TwoFactorAuth<\/pre>\n\n\n\n<p>for Nginx\/Apache:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo cd \/var\/www\/html\/magento2\/\nsudo php bin\/magento module:disable Magento_TwoFactorAuth<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This Magento AMI walks you through using the Magento auto-installer script (magento_installer.sh) to deploy a <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":51,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento AMI Installer - User Guide - Cloudkul<\/title>\n<meta name=\"description\" content=\"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento AMI Installer - User Guide - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-16T12:51:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-20T11:52:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/06\/login-and-run-the-script-2.webp\" \/>\n<meta name=\"author\" content=\"Anuj Mishra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\",\"name\":\"Magento AMI Installer - User Guide - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2025-06-16T12:51:01+00:00\",\"dateModified\":\"2026-03-20T11:52:08+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/2307285643d6f14b83331c1018eddb25\"},\"description\":\"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento AMI Installer &#8211; User Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/2307285643d6f14b83331c1018eddb25\",\"name\":\"Anuj Mishra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d5ae7a81d61bab1268050e7c5a16bb82?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d5ae7a81d61bab1268050e7c5a16bb82?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Anuj Mishra\"},\"url\":\"https:\/\/cloudkul.com\/blog\/author\/anuj-mishra5198\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento AMI Installer - User Guide - Cloudkul","description":"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/","og_locale":"en_US","og_type":"article","og_title":"Magento AMI Installer - User Guide - Cloudkul","og_description":"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.","og_url":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/","og_site_name":"Cloudkul","article_published_time":"2025-06-16T12:51:01+00:00","article_modified_time":"2026-03-20T11:52:08+00:00","og_image":[{"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2025\/06\/login-and-run-the-script-2.webp"}],"author":"Anuj Mishra","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/","url":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/","name":"Magento AMI Installer - User Guide - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2025-06-16T12:51:01+00:00","dateModified":"2026-03-20T11:52:08+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/2307285643d6f14b83331c1018eddb25"},"description":"Magento AMI Installer - User Guide provides auto-installer script to deploy Magento site with Apache, MySQL, and SSL AWS EC2 instance.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/magento-ami-installer-user-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento AMI Installer &#8211; User Guide"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/2307285643d6f14b83331c1018eddb25","name":"Anuj Mishra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d5ae7a81d61bab1268050e7c5a16bb82?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5ae7a81d61bab1268050e7c5a16bb82?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Anuj Mishra"},"url":"https:\/\/cloudkul.com\/blog\/author\/anuj-mishra5198\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/19994"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=19994"}],"version-history":[{"count":14,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/19994\/revisions"}],"predecessor-version":[{"id":20841,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/19994\/revisions\/20841"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=19994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=19994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=19994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}