Magento deployment takes around 1 hour 30 minutes in common. To save your time, we developed Free Magento 2 Open Source One-Click App for DigitalOcean. And now, this installation requires just 25 minutes and 10 minutes more if you need an instance with sample data. We launched the 1-Click App for Magento 2 on the DigitalOcean Marketplace in 2020, and now it is used by 231 active accounts. It helped to deploy about 231 new Magento web stores. What's more exciting we had just a few support requests during this year. That is a piece of good evidence of simple installation and flawless experience.
Magento 2 Open Source One-Click App for DigitalOcean benefits:
- Fast deployment (just 25 minutes)
- Simple installation (just a few easy actions, precisely described in the guide)
- The latest Magento Open Source version installs automatically
- All Magento out-of-the-box features available right after installation
- Enjoy DigitalOcean hosting perks (easy-to-use user interface, robust hardware resources for excellent eCommerce store performance)
DigitalOcean perks:
- Good hardware resources that provide excellent performance for web stores and handy tools to use
- An affordable price compared to other cloud providers
- Flexible server configurations sized for any application
- API that covers all functionality, easy to use UI
- Support for Kubernetes right out of the box
- Multiple Datacenter Locations
- DigitalOcean Marketplace with handy solutions
Getting started after deploying Magento 2 Open Source
- Enables the Apache rewrite module so the Magento 2 permalink feature will work
- Enables the UFW firewall to allow only SSH (port 22, rate limited), HTTP (port 80), and HTTPS (port 443) access
- Creates a Magento Mysql user with the necessary permissions, creates Magento database. Note, the Droplet root user will not be prompted for the MySQL password
- Download and install Magento 2 with Sample Data (optional) instance on your entered domain
- Enable and configure Varnish (port 80) for your Magento 2 instance
- Configure Postfix SMTP server. It’s a free and open-source mail transfer agent that routes and delivers electronic mail to your Magento 2 Admin email address
Go to the Magento 2 Open Source One-Click app listing on DigitalOcean Marketplace > Create Magento 2 Open Source Droplet > follow Getting started after deploying Magento 2 Open Source instruction.
After you create a Magento One-Click Droplet, you’ll need to log into the Droplet via SSH to finish the Magento setup. This prevents the setup wizard from being visible to the internet until you’re ready to complete it. If you try to visit the Droplet’s IP address before logging into the Droplet, you’ll see a DigitalOcean landing page.
From a terminal on your local computer, connect to the Droplet as root.
Make sure to substitute the Droplet’s IP address.
ssh root@use_your_droplet_ip
If you didn't add an SSH key when you created the Droplet, you’ll first be prompted to reset your root password.
Then, the interactive script that runs will first prompt you for your domain or subdomain. Note, before entering your domain or subdomain name, it must be configured through DigitalOcean Control Panel or through any other DNS provider.
To cancel setup, press Ctrl+C. This script will run again on your next login
--------------------------------------------------
Enter the domain name for your new Magento 2 site.
(ex. example.org or test.example.org) do not include www or http/s
--------------------------------------------------
Domain/Subdomain name:
Further, you will be asked to enter the proposed data to create a new admin account for Magento 2.
Now we will create your new admin user account for Magento.
Your Email Address:
Username:
Password: (Note! Your password must include both numeric and alphabetic characters)
Further, you will be asked to enter the proposed data to create an admin account for Magento 2. The next prompt asks if you want to use SSL for your website via Let’s Encrypt.
Note, before use SSL for your website your domain name must be propagated by DNS, otherwise Let’s Encrypt doesn’t validate it.
You will see the following message:
Next, you have the option of configuring LetsEncrypt to secure your new site.
Before doing this, be sure that you have pointed your domain or subdomain to
this server's IP address. You can also run Let's Encrypt certbot later with the
command 'certbot --apache'
Would you like to use LetsEncrypt (certbot) to configure SSL(https) for your new site? (y/n):
Note!You can not configure SSL certificate later just using command 'certbot --apache' because Varnish using default 80 port. You must open magento_setup.sh file in /opt/digitalocean/ directory and find section with configure LetsEncrypt certificate to secure your site and run the commands described there to configure the SSL certificate.
Before installation process, you will be asked to enter your authentication keys from Magento Marketplace.
Authentication required (repo.magento.com):
Username:
Password: