What is lamp

What is: LAMP

LAMP is an abbreviation for Linux, Apache, MySQL, and PHP, an open-source Web development platform, also called a Web stack, that uses Linux as the operating system, Apache as the Web server, MySQL as the Relational Database Management System(RDBMS) and PHP as the object-oriented scripting language. Originally popularized from the phrase “Linux, Apache, MySQL, and PHP,” the acronym “LAMP” now refers to a generic software stack model.Perl or Python can substitute for PHP.

Individually, Linux, Apache Web server, MySQL database, Perl, Python or PHP have same prowess. The key to the idea behind LAMP, a term originally coined by Michael Kunze in the German Computer magazine in 1998, is the use of these items together. Although not designed to work combined, these open source software alternatives are readily and freely available. In the past few years, their compatibility and combined use have grown tremendously.

lamp example

Linux: Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution.

Apache Web Server: Often referred to as Apache, a public-domain open source Web server developed by a loosely knit group of programmers.

Mysql: MySQL is an open source RDBMS that relies on SQL for processing the data in the database.

PHP: Self-referentially short for PHP: Hypertext Preprocessor, an open source, server-side, HTML embedded scripting language used to create dynamic Web pages.


How to install LAMP?

Step 1: Install Apache:

sudo apt-get install apache2


Step 2: Install PHP:

sudo apt-get install php5 libapache2-mod-php5


Step 3: Create a file called test.php:

sudo gedit /var/www/testphp.php

with the content:

<?php phpInfo(); ?>


Step 4: Set AllowOverride to yes:

sudo gedit /etc/apache2/apache2.conf

Find :

<Directory /var/www/>

Options Indexes FollowSymLinks

AllowOverride None

Require all granted


Replace with:

<Directory /var/www/>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted



Step 5: Change Document root:

sudo gedit /etc/apache2/sites-enabled/000-default.conf

Change :DocumentRoot /var/www/html

with : DocumentRoot /var/www


Step 6: Install PHP Extensions:

sudo apt-get install php5-cli php5-curl

Similar to this you can install all other required PHP extensions: Check required extensions for Magento 2



Step 7: Install MySQL:

sudo apt-get install mysql-server-5.6


Step 8: Install phpmyadmin:

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin


Step 9: rewrite module:

sudo a2enmod rewrite


Step 10: Restart apache:

sudo service apache2 restart

Editorial Staff

The editorial staff takes care of growth strategies, content creation, and outreach within the community for HumCommerce.

Follow us

Subscribe to our mailing list

Increase your sales!