Installing stacks on single droplet?

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?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.