0% found this document useful (0 votes)
112 views17 pages

How To Use The Magento One

This document provides instructions for using DigitalOcean's Magento One-Click application image to set up a Magento storefront on a virtual private server (VPS). It describes how to create a Magento Droplet, access the Magento credentials, secure the site with an SSL certificate, set up a custom domain name, and configure the administrator account settings. The steps include selecting the Magento image, Droplet size and region, retrieving the login credentials from the server, installing an SSL certificate, editing the Apache configuration, updating the Magento admin panel settings, and restarting Apache.

Uploaded by

priyankashoban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views17 pages

How To Use The Magento One

This document provides instructions for using DigitalOcean's Magento One-Click application image to set up a Magento storefront on a virtual private server (VPS). It describes how to create a Magento Droplet, access the Magento credentials, secure the site with an SSL certificate, set up a custom domain name, and configure the administrator account settings. The steps include selecting the Magento image, Droplet size and region, retrieving the login credentials from the server, installing an SSL certificate, editing the Apache configuration, updating the Magento admin panel settings, and restarting Apache.

Uploaded by

priyankashoban
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 17

How To Use the Magento OneClick Install Image

Posted Oct 3, 2014 42.1kviews Applications DigitalOcean

Tutorial Series
This tutorial is part 10 of 17 in the series: DigitalOcean 1-Click Application Images
DigitalOcean's Magento One-Click application provides a quick start to building a
Magento storefront on top of a LAMP stack. This tutorial will guide you through the steps
to finish configuring your site, including setting your domain name and installing an SSL
certificate.

Create a Magento Droplet


To start using it, select Magento 2.0 on 14.04 from the One-Click apps tab of the
Droplet create page:

Then, select the size of your Droplet. The minimum size for a Magento Droplet is 1GB,
but using a larger Droplet is highly recommended for production instances:

Next, select your desired region:

If you use SSH keys to manage your droplets, which are more secure than passwords
and are recommended, you can also specify which ones you want added to this server.

Access Your Magento Credentials


Once your server has been spun up, you will be able to access the Magento installation
from your IP address. However, in order to log into the administration panel of your
storefront, you will need to retrieve your randomly generated password.
You can access the password by logging into your droplet with the following command:
ssh root@your_ip_address

If you are prompted for a password, type in the password that was emailed to you when
the server was created. Alternately, if you set up the droplet with SSH keys, you can go
ahead and log in without the need for a password.
Once you are logged in, you will see the message of the day (MOTD) which contains
your password. It will look like this:
-----------------------------------------------------------------------------------Thank you for using DigitalOcean's Magento One-Click Application.
Your storefront is available at http://XXX.XXX.XX.XXX
Your login credentials are:
User: admin
Pass: XXXXXXXX
Vist http://XXX.XXX.XX.XXX/admin_xxxxx to finish configuring your site.
------------------------------------------------------------------------------------

Now that you have your login credentials, you can visit your Magento site by entering its
IP address in your browser.

Magento's administration panel is protected by generating an unique URL for each


instance. This URL can also be found in the MOTD and will be in the form:
`https://your.ip.address/admin_xxxx

Secure Your Site with SSL


By default the application image generates a self-signed SSL certificate and uses it to
secure the administration panel of your site.
While secure, a self-signed SSL certificate will generate a warning to visitors of
your site. Before putting your site into production, you will want to obtain an SSL
certificate from a proper certificate authority.
A free SSL certificate can be obtained from StartSSL. This tutorial will guide you through
the process of installing it from start to finish. Whether you use StartSSL or purchase a
certificate from another provider, your next step is to edit your Apache configuration to
use your new SSL cert.
nano /etc/apache2/sites-available/magento-ssl.conf

Find the lines containing the information for the existing self-signed cert:

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key

and replace the the paths with the location of the files obtained from your certificate
authority.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem

Next, restart Apache in order for the changes to take affect:


sudo service apache2 restart

Set Up Your Domain


In order to use your own domain with the site, you will need to update the configuration
in the administration panel. Sign into the site's administration panel and navigate
to Store -> Configuration Here you will replace the references to your IP address with
your domain name. There are two place where you need to make the change: General
-> Web -> Base URLs and General -> Web -> Base URLs (Secure)

You will want to change your Apache configuration to refer to your domain name as well.
Edit both /etc/apache2/sitesavailable/magento.conf and /etc/apache2/sites-available/magentossl.conf and replace the line:
#ServerName www.example.com

with:
ServerName your_domain.com

Once again, you will need to restart Apache in order for the changes to take affect:
sudo service apache2 restart

Set Up Your Account


You will also want to change the details of you administrator account. Select Account
Settings from the drop down menu in the upper right:

In this screen, you may personalize your settings including your contact address,
username, and password:

How To Create Your First


DigitalOcean Droplet Virtual
Server
Posted Jun 20, 2012 535.1kviews DigitalOcean

Introduction
DigitalOcean calls its virtual private servers Droplets; each Droplet that you spin up is a
new VPS for your personal use.
The setup is very easy the entire process can take as little as a minute! This tutorial
will walk you through creating and accessing your new server.

Step One Log In


To create your first Droplet go to the DigitalOcean Control Panel and log in with your
email and password. The create button will be right there on the first page: click on
"Create Droplet":

Step Two Select Droplet Image


You can create your Droplet image from 4 possible categories:

Distributions: Create from several operating systems, such as Ubuntu, Debian,


CoreOS, and CentOS. After selecting your distribution, be sure to select the image of your
choice (specifying the version and 64 bit or 32 bit).
One-click Apps: Create from images that have pre-installed and configured programs
that will get your Droplet off to a strong start.
Snapshots: Create from a snapshot that you previously made, letting you create backup
copies or scale quickly.
Backups: Create from a previously automatically generated backup, the option that you
can enable on each Droplet individually with the "Backups" button.

32-bit vs. 64-bit Systems


A 32-bit operating system is recommended for cloud servers with less than 3 GB of
RAM -- this is especially true for servers with 1 GB, or less, of RAM. Processes can
require significantly more memory on the 64-bit architecture. On servers with a limited
amount of RAM, any performance benefits that one might gain from a 64-bit operating
system would be diluted by having less memory available for buffers and caching.

Step Three Select Your Droplet's Size


Depending on your needs and budget, you can select the Droplet option that works best
for you.

There is a wide spectrum for prices, power, and storage capacity. The smallest and
least expensive option starts at 512MB of RAM with 1 CPU and 20GB of SSD storage.
The size options grow larger from there, all the way up to 64GB of RAM with 20 CPUs
and 640GB of SSD storage. Should your needs change at a future point, you can adjust
your Droplet's plan using the flexible and permanent resize options.

Step Four Select Your Droplet Region


You may choose the most effective region for your Droplet location. Although equally
powerful, the best region to choose is the one nearest to you and your customers or

other possible users. Selecting a more distant server location may increase your server
latency without serving any practical purpose.

Step Five Select Additional Options


The Select additional options section allows you to select which features you would like
your Droplet to have:

Private Networking: Enables a private networking interface, in addition to the default


public interface, that can only be accessed via the private network of other Droplets within
the same datacenter.
Backups: Enables automatic backups of the Droplet for more information about the
backup service, click here
IPv6: Enables IPv6 access for your Droplet.
User Data: Enables you to pass arbitrary data into the user-data key of the DigitalOcean
Metadata service. This setting is required for CoreOS Droplets. To read more about user
data, check out the tutorial on Droplet Metadata.

Select any of the settings you would like to enable. The Private Networking feature is
very useful if you have multiple Droplets in the same datacenter that communicate with
each other.

Step Six Select SSH Keys (Optional)


Optional: Select which SSH keys you would like to add to your new Droplet.

It is recommended that you set up SSH keys to authenticate to your Droplets because it
provides better security than a basic password. For more information about setting up
SSH keys with your DigitalOcean Droplets, refer to this tutorial.

Step Seven Select the Number and Names of


the Droplets to Create
Next, you can choose the number and names of the Droplets you wish to create.
Depending on the number of Droplets currently in your account, you can create up to
five Droplets that will use the configuration that you have selected. By default, a single
Droplet is set to be created. You can adjust the number of Droplets to create be clicking
the plus or minus buttons.
Each Droplet must have a name. This name will be used in the DigitalOcean control
panel and as the server's hostname. A default name will be provided for your Droplet(s)
based on the options you have selected, but you can modify the name(s) to best suit
your needs. You may want to use a Fully Qualified Domain Name (e.g.
droplet1.example.com).

Step Eight Create Your Droplet


Once you have selected all of your preferred options, click on "Create".
After your Droplet is created, its root password will arrive in your email inbox and the
Droplet will be set up. If you included an SSH key in the previous steps, you will not be
emailed a root password use your SSH private key to authenticate as the root user
instead.
With that, your server is ready!

Step Nine Log In To Your Droplet


The process is slightly different for Mac and Windows Computers:

How to Log In With a Mac


1. To log in from a computer running OS X, open the terminal program (in the utilities
folder) and type in the following command. In the command use the IP address found
in the DigitalOcean control panel: ssh root@droplet_ip_address
2. Type "yes" if the prompt asks if you would like to connect to the host.
3. If you did not use SSH keys, when prompted, type in the root password that was
emailed to you and press ENTER. Although the password is entered when you type,
it does not show up on the screen for security reasons.

You will then be connected to your DigitalOcean Droplet.

How to Log In With Windows


To log in to your Droplet on Windows, you will need to have PuTTY, an SSH client,
installed on your computer.
1. You can download the program here. Choose the Windows installer.
2. Once PuTTY is downloaded and installed, starting the program will take you to the
configuration screen.
3. Fill in the "Host Name (or IP address)" field with the Droplet IP address from the
DigitalOcean control panel. Make sure that the port number is 22 and that the
connection type is SSH.
4. Additionally, click on the "SSH" sidebar entry and select "2 only" as the preferred SSH
protocol version.
5. Once everything is configured, you can save these settings for future logins by
clicking on the "Session" item in the side bar and entering a title into the "Saved
Sessions" field. Click save to store your settings.
6. Double-click on the session name to connect. Accept the subsequent pop up to
confirm that you wish to connect to the host. After PuTTY starts up, type in the root
password that was emailed to you.

You will then be connected to your DigitalOcean Droplet.

See More
Once you have installed a Droplet, you can begin to configure it to meet your needs. We
have tutorials covering the initial server setup for Ubuntu, Debian, and CentOS.

You might also like