Question

LEMP environment use for production

  • Posted February 26, 2014

Is it safe to use LEMP as a production environment or should it be separated, e.g., [nginx+ php] + [MySQL]?

Subscribe
Share

Submit an 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.

It’s safe, yes. It’s probably safer to host them on one box and have them listen on the loopback interface than hosting them on two. <br> <br>However, you might need to separate them for redundancy purposes or horizontal scaling.

Is that a good practice though?

Alex, you are correct. What I meant to ask is it okay to install all those components on the same machine to be used as a production server. <br> <br>

This doesn’t make any sense. Those things are separated. LEMP just means they’re all installed on the machine. So yes, use it.