Should I be using Magento on a LAMP or LEMP stack?

Posted July 28, 2014 6k views

Hi all,

I am interested in creating an online store using Magento and luckily, I found a tutorial on it. However, I don’t know if 1) it is the latest and best and 2) if I should be using a LAMP stack, or LEMP stack. I haven’t seen enough of LEMP to know if this is something I should do for an online store.

What do you guys/gals think?

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.

Submit an Answer
2 answers

The tutorial you linked makes use of the LAMP stack (Linux, Apache, MySQL, PHP). It was written for Ubuntu 12.04. If you want to install it on the Ubuntu 14.04 LAMP app, there are two small differences is that you should be aware of. First, the file /etc/apache2/sites-available/default is now named /etc/apache2/sites-available/000-default.conf Second, the Apache root has changed from /var/www/ to /var/www/html/ So update the files accordingly.

Also there is a newer version of Magento. You can download it with:


If you want to try installing it with the LEMP stack (Nginx), check out these docs on Magento’s wiki.

Let us know how it goes!

by danny.sipos
In this tutorial, we will see how to install Magento from the command line onto a VPS running Ubuntu 12.04.
  • I just started working on this, following a LEMP tutorial from elsewhere. There were some slight issues I ran into, but I am taking notes as I go. When I’m finished, I’ll report back here with the steps I took.

    EDIT: Should I run the wget command inside of the root html directory of my site (using nginx)?

I’ve decided not to go with Magento, I will keep exploring other options. The documentation for it is terrible and the entire experience with trying to set up my server for it was highly unpleasant.