You could earn up to $300 by adding new articles!

Get Started Now

One-Click Magento

Published on: Tue, Feb 7, 2017 at 12:21 pm EST

This article contains information about the Magento application that can be deployed on Vultr.

Server Requirements

To launch the Magento application on Vultr, you must pick a plan with the following requirements.

  • RAM: 1GB or greater

App Details

Magento runs on the Ubuntu 16.04 operating system. It is the Magento Community Edition (CE) flavor. You can log into this system with an SSH client using the root login found on your Vultr control panel. Installations prior to April 2018 were built on the CentOS 6 operating system.

To access the Magento storefront, navigate to https://[SERVER_IP]/ in your web browser. Substitute the [SERVER_IP] with the IP address of your VPS. The Magento backend (admin area) has a secret URL. The secret URL and login credentials for accessing the backend are listed in the Vultr control panel. Please note that it may take several minutes after launching the Magento application for either of the URLs to become available.

Magento is installed on your VPS at /var/www/html.

SSL Warning

Your Magento server can be accessed with either http:// or https:// URLs. Accessing with http:// will automatically redirect you to https://. By default, the https:// URL uses a self-signed certificate, which displays a security warning. This warning can be safely ignored.

Depending on your plans for your Magento server, you may want to update the certificate to one provided by an actual certificate authority. Doing so will remove the security warning shown by your web browser. To install a new certificate, do the following:

  1. Obtain a certificate from a certificate authority for your domain.
  2. Login to your server using ssh as root.
  3. Replace the server.crt and server.key files in /etc/nginx/ssl/ with the updated certificate. Details on converting certificate formats are outside of the scope of this article.
  4. Restart the web server: systemctl restart nginx.service; systemctl restart php7.0-fpm.service

DNS Setup

If you plan on using a domain with your Magento application, you will need to point the DNS "A record" to your [SERVER_IP]. This will allow you to access Magento by navigating to your website (https://www.example.com). You must also update Magento's configuration by following these steps below.

  1. Login to the Magento backend (admin area).
  2. Click on the "Stores" menu, then "Configuration".
  3. Click on the "Web" submenu.
  4. Click on the "Base URLs" section and change "Base URL" to https://[YOUR_DOMAIN]/.
  5. Click on the "Base URLs (Secure)" section and change "Secure Base URL" to https://[YOUR_DOMAIN]/.
  6. Click "Save Config" at the top of the page.
  7. Magento will display a warning that its cache needs to be flushed. Follow the link in the warning and clear Magento's cache.

Your Magento application is now accessible at https://[YOUR_DOMAIN]/.

MySQL Database

There is a MySQL database server running on your Magento application server. You can connect to the database by executing the following:

mysql -u root

The MySQL root password is saved on the file system in /root/.my.cnf.

Update Bug

Magento 2.1.3 has an issue where a link to the updater was not included in the admin panel. You can navigate to the updater manually with the following link. Replace the parts in caps accordingly.

https://[SERVER_IP]/[admin_SECRETURL]/admin/backendapp/redirect/app/setup/

About Vultr Applications

Vultr applications use modern releases of software packages. Applications are configured to be deployed with specific versions of software. Over time, the Vultr team will update the application offerings to include newer operating systems, package versions, etc. This document only provides up-to-date information about the latest version of this application. Vultr applications are updated without notice. If you plan to build a project or infrastructure based on our application templates, we recommend taking a snapshot of the application used in your initial deployment.

Want to contribute ?

You could earn up to $300 by adding new articles!

Get started in the SSD Cloud!