Previous
Next

How to deploy a LAMP stack on Ubuntu (using a Digital Ocean droplet)


With ECmanaged you can save valuable time and launch any application on any Cloud provider in just a few clicks. You only need to follow 3 simple steps. In this tutorial we will show you how to deploy a LAMP stack to a Digital Ocean droplet. The whole process is carried out in less than 5 minutes. The LAMP (Linux + Apache + Mysql + PHP) server can be fullycustomized to your needs and wishes. 

In short, ECmanaged allows you to create different types of droplets or Cloud servers:

♦ Simple: for quick clean and basic operating systems 
♦ Applications: Ready-made 1-click applications 
♦ Customized: to build your personalized droplet, adding recipes, scripts and other builder objects. 
♦ Image or Backups: to create a droplet based on an instance image or backup (like a snapshot). 
♦ Template: To launch the templates you have built using our ECmanaged "builder" 

All these types of servers share the easy ECmanaged deployment procedure. With ECmanaged you will deploy your droplets ina matter of minutes or seconds, depending on the type. A real time-saver for developers and any sysadmin. 

Step 1 of 3: Choose the Cloud provider you want to use
Before starting, verify that you have added Digital Ocean to your list of preferred Cloud providers. 
Go to the “My Clouds” section in your ECmanaged account and choose Digital Ocean. Now click on “New Cloud Server”. A wizard will open to guide you through a 3 step process.




 Step 2 of 3: Setting up your new Droplet with a customized LAMP stack 

The wizard will ask you some basic information in order to create the droplet. After completing the wizard the Droplet will have been created on your Digital Ocean account and the LAMP stack will be up and running. We will build the LAMP droplet based on a ready-made application. The procedure is very similar to the 1-click apps from Digital Ocean. To do so, choose the “Application” tab and proceed to the next step.





Adjust the region, size and availability zone settings. ECmanaged will provide you with an estimated cost of the Droplet you are about to create so you can control your Cloud expenditure.





Continue the wizard and choose the “LAMP system (configurable)” as “Application to install”. Decide which Operating System you prefer to use. In this tutorial, we use Ubuntu 14.04x64 . Only those OS that are compatible with the app you selected are shown.




The next step is deploying a script. This script will do all the work for you. You will want this task to be carried out as soon as the droplet is launched, so select “ECM Scripts” and choose “Security upgrade for Debian and Ubuntu” while in the subtab “On initialize”.




Customize the application by setting variables. Add the packages you want to install during deployment and provide the information needed to complete the process.

An interesting feature we would like to highlight is using internal variables (tagged as ${VAR}$).In the “Virtual Host” field we use the variable ${ECM_INSTANCE_DNS_NAME}$ as default which points to the DNS name that will be automatically created for you under the ecm-clouds.com domain. If you prefer, you can substitute it with your own domain name.





Once you have completed all the fields you can proceed to the penultimate step. You are just two clicks away of launching your LAMP droplet.Before launching your droplet, you need to set the final settings, select your security keys or create a new pair and create tags to identify and group the server you're about to launch. You can also add the server inside a previously created Load Balancer to distribute workloads.






Did you know you can add monitoring or run automated actions over it using the other powerful ECmanaged tools? You can read more about adding monitoring here.

Step 3 of 3: Launching the droplet
The last screen of the wizard will show you a summary of the droplet you are about to create. 
Click on “LAUNCH” and ECmanaged will carry out the necessary backend operations to have your LAMP droplet up and running instantaneously. You can close the process status window or you can keep track of the process status and output of the installation and deployment. 





 Congratulations! 

You now have created a LAMP droplet (or server) on Digital Ocean with Ubuntu. Customized application deployment has never been easier. The new droplet is listed automatically in both your ECmanaged account as your Digital Ocean account.
Remember you can switch it on and off using the ECmanaged control panel so you keep control of your Cloud expenses.





Click on the new server to see its properties. In case you want to test your LAMP deployment you can click the link beside “DNS name” in the “System Information” field to launch it on a browser. Being a multi-Cloud management tool, ECmanaged allows you to deploy your applications across multiple providers. ECmanaged is already compatible with Digital Ocean, Amazon AWS, Linode, Rackspace, Cloudwatt, HP Cloud, Exoscale and basically any OpenStack based private Cloud. The procedure to deploy apps on other providers is similar to what we outlined above. 

Feel free to contact our Helpdesk in case you have questions.

30 day Free Trial.
No Credit Card required