LAMP is a combination of operating system and open-source software stack. The acronym LAMP came from the first letters ofLinux, Apache HTTP Server, MySQL or MariaDB database, and PHP/Perl/Python. This tutorial describes how to install LAMP stack on Ubuntu 15.10, however the steps described below should work on previous Ubuntu versions such as Ubuntu 15.04/14.10/14.04/13.10 etc.
LAMP Stack

1. Install Apache

Apache is an open-source multi-platform web server. It provides a full range of web server features including CGI, SSL and virtual domains.
To install Apache, enter:

2. Install MySQL

MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases, though SQLite probably has more total embedded deployments.

During installation, you’ll be asked to setup the MySQL “root” user password. Enter the password and click Ok.
MYSQL Config
Re-enter the password.
reenterpassword mysql
MySQL is installed now.
You can verify the MySQL server status using command:
On Ubuntu 15.10/15.04:

Sample output:

3. Install PHP

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely used open-source general purpose scripting language that is especially suited for web development and can be embedded into HTML.
Install PHP with following command:

To test PHP, create a sample “testphp.php” file in Apache document root folder.

Add the following lines:

Restart apache2 service.
On Ubuntu 15.10/15.04:

Navigate to http://server-ip-address/testphp.php. It will display all the details about php such as version, build date and commands etc.
Check localhost ubuntu

https://i2.wp.com/nvtienanh.com/wp-content/uploads/2015/11/lamp-server-712x445.png?fit=640%2C400https://i2.wp.com/nvtienanh.com/wp-content/uploads/2015/11/lamp-server-712x445.png?resize=150%2C150Nguyễn Văn Tiến AnhBlogLinuxUbuntu 15.10LAMP is a combination of operating system and open-source software stack. The acronym LAMP came from the first letters ofLinux, Apache HTTP Server, MySQL or MariaDB database, and PHP/Perl/Python. This tutorial describes how to install LAMP stack on Ubuntu 15.10, however the steps described below should work on previous...Tien Anh Nguyen Van