Question

Can I run LEMP Server and a Node stack on the same droplet?

I just setup a LEMP server on Ubuntu 16.04. This is my first time setting up a server from scratch!

I would like to run 3 seperate domains on the same droplet. One is a LEMP site (personal site) and another is a Node.js app that I want to use Node/Express/React/Postgres on. The third one might be a wordpress blog. Anyway…

Two Questions:

#1 I have already created the server blocks for the respective sites. Do I just install all my necessary packages and go from there? Can node and node packages be installed alongside mysql and php?

#2 Do server blocks share all the same access to the packages/servers I install? For example, can all domains use mysql and php or node?


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.

Accepted Answer

Think of it this way:

Can this road handle 100,000 cars per hour with no bottle necks?

There are a lot of questions to ask:

  • Was the road built optimally (code for the sites)?
  • Is the road wide enough (memory allocation per request)?
  • Are there enough lanes (server size)?
  • Does it have shoulders to allow people to pull over if they break down (CPU/RAM is able to handle extra load/larger requests)?

So, think of planning a server the way you would a road. Can it handle the traffic? Can it handle 25% more traffic than you expect? Is your code optimized?

As for if the sites can use the same installs of packages: yes.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.