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 15 minutes)
- Simple installation (just a few easy actions, precisely described in the guide)
- The latest Magento Open Source version installs automatically
- Now you can deploy blazing fast Hyva theme as well
- 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)
- 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
Create a Droplet and install Magento Open Source app from the Marketplace.
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.
If you didn't add an SSH key when you created the Droplet, you’ll first be prompted to reset your root password.
The interactive script will run the first prompt for your domain or subdomain.Note, before entering your domain or subdomain name, it must be configured through DigitalOcean Control Panel or 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:
Create a new admin account for Magento 2Further, 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 should be at least 6 characters long with one digit and one Upper case Alphabet)
Further, you will be asked to enter the proposed data to create an admin account for Magento 2.
You have the option of configuring LetsEncrypt to secure your new site. Before doing this, ensure you have pointed your domain or subdomain to this server's IP address. You can also run LetsEncrypt certbot later with the command 'certbot'
Set up SSL
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:
Would you like to configure SSL (https) for your site using LetsEncrypt (certbot)? Make sure your domain is pointed to this server's IP address. (y/n):
Note. You can not configure SSL certificate later just using command 'certbot --apache' because Varnish uses the default 80 port. You must open magento_setup.sh file in /opt/digitalocean/ directory and find a section with configure LetsEncrypt certificate to secure your site and run the commands described there to configure the SSL certificate.
Terms of Service
Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf. You must agree in order to register with the ACME server at https://acme-v02.api.letsencrypt.org/directory - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (A)gree/(C)ancel:
Would you be willing to share your email address with the Electronic Frontier Foundation
Would you be willing to share your email address with the Electronic Frontier Foundation, a founding partner of the Let's Encrypt project and the non-profit organization that develops Certbot? We'd like to send you email about our work encrypting the web, EFF news, campaigns, and ways to support digital freedom. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Y)es/(N)o:
Obtaining a new certificate...
Enabling site default-ssl.
Downloading Magento 2... Installing.
Select provider and category paths.
Please, select patch provider: 1 Please, select patch category: 1
Select category from the bellow
Shopping Cart (8)
Web API (1)
Magento 2 Sample Data Installation
Would you like to install Magento 2 Sample Data? This can help you get started if you're new to Magento. (y/n):
Provide your authentication keys from Magento Marketplace
Authentication required (repo.magento.com): Username: Password:
To get your Public and Private key, you must follow the instructions How to get your authentication keys. Use the Public key as your Username and the Private key as your Password.
Hyva theme installationTo install the Hyva Theme, you must fill in your Hyva Theme token and your Project Name.
Would you like to install Hyva Themes for Magento 2? You'll need a valid token from Hyva Themes and your project name. (y/n):
Please enter your Hyva Themes token:
Please enter your Project Name:
After successful installation, you will see the following message:
Installation complete. Access your new Magento site at https://your.domain/ in a browser to continue.
In addition to the package installation, the One-Click also:
● 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 and 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.
● Install Hyva Theme frontend (optional)
● 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
After Installation, you can use the Magento 2 Admin Dashboard
● The MySQL Magento user password is in /root/.digitalocean_password.
Note, the Droplet root user will not be prompted for the MySQL password.
● The web root is /var/www/html.
● You can get information about the PHP installation by logging into the Droplet and running php -i.
● For access Magento admin panel using “Username” and “Password”, which were introduced earlier.
Creating an Apache virtual hosts file for each site maintains the default configuration as the fallback, as intended, and makes it easier to manage changes when hosting multiple sites.
To do so, you’ll need to create two things for each domain: a new directory in /var/www for that domain’s content, and a new virtual host file in /etc/apache2/sites-available for that domain’s configuration. For a detailed walkthrough, you can follow How to Set Up Apache Virtual Hosts.
If you didn’t enable HTTPS during the initial setup script, you can enable it manually at any time after the fact.
Setting up an SSL certificate enables HTTPS on the web server, which secures the traffic between the server and the clients connecting to it. Certbot is a free and automated way to set up SSL certificates on a server. It’s included as part of the Magento 2 One-Click to make securing the Droplet easier.
To use Certbot, you’ll need a registered domain name and two DNS records:
● An A record from the domain (e.g., example.com) to the server’s IP address
● An A record from the domain prefaced with www.example.com to the server’s IP addressAdditionally, if you’re using a virtual hosts file, you’ll need to make sure the server name directive in the VirtualHost block (e.g., ServerName example.com) is correctly set to the domain.
HTTPS traffic on port 443 is already allowed through the firewall. After you set up HTTPS, Varnish configuration will automatically redirect your site to your secure 'https' url.
You can serve files from the web server by adding them to the web root
(/var/www/html) using SFTP or other tools.