Report this

What is the reason for this report?

Installing stacks on single droplet?

Posted on August 14, 2017

I saw someone tried to run mean and lemp on 14.04 server. But I need a more updated server to run apps which require php7 etc etc. So can anyone explain how this could be done?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

One of my favorite things about Digital Ocean is that they don’t restrict what you can run! To do this, you would just need to install all the component pieces from their sources, not from the package repositories (apt-get).

For the MEAN stack, you would need to download MongoDB and NodeJS from their respective websites (Angular and Express can be installed via NPM once you have Node).

For the LEMP stack, you would need to install nginx, MySQL, and PHP 7 from their corresponding websites.

Each website should have instructions on how to do so from the command line. Once everything is installed and you have your applications running, you’ll need to configure the server to actually serve the applications. The easiest way to do this, since you have nginx as part of the LEMP stack, is to set up a reverse proxy for the NodeJS app, and change your FastCGI settings for the PHP application. Digital Ocean has plenty of tutorials on each of these things.

If you can, use Ubuntu 16.04 instead of 14.04. Its package repositories will have some of the updated software you need, so you won’t have to manually install as much.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.