LAMP Install

This post will help you to install LAMP into Ubuntu 16.04

LAMP is an archetypal model of web service stacks, named as an acronym of the names of its original four open-source components: the GNU/Linux operating system, the Apache HTTP Server, the MySQL relational database management system, and the PHP programming language.

Now try to know what is Apache, MySQL and PHP:

The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation. 



MySQL is an open-source relational database management system. Its name is a combination of "My", the name of co-founder Michael Widenius's daughter, and "SQL", the abbreviation for Structured Query Language.



PHP: Hypertext Preprocessor is a server-side scripting language designed for Web development, but also used as a general-purpose programming language. It was originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Group. 


Now install LAMP into Ubuntu 16.04

Install Apache:

sudo apt install apache2

Install MySQL:

sudo apt install mysql-server
 
Install PHP:

sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php

Restart Server:

sudo service apache2 restart

Check Apache:

Open your web browser and type http://localhost/


Check PHP:

php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'


Congratulations, you have just Installed a Ubuntu LAMP Server!


Comments