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

July 28, 2014 2.8k 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?

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.

Have another answer? Share your knowledge.