Installation LAMP ( Apache+MySQL+PHP ) on Ubuntu

Introduction

A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MySQL database, and dynamic content is processed by PHP.

Environment Versions

Operating System : Ubuntu 16.10 Yakkety Yak 64-bit Server Edition

Install Tasksel

Tasksel package provides a simple interface for users who want to configure their system to perform a specific task.

$ sudo apt-get update && sudo apt-get install tasksel

Install LAMP Server

Run the following command in the terminal:

$ sudo apt-get install lamp-server

Test LAMP Stack

Congratulation's your LAMP setup has completed. To verify open your web browser and access http://localhost/ or http://127.0.0.1. You will get It works!. It showing that Apache is working fine.

Now create a phpinfo file /var/www/html/phpinfo.php using following code:

<?php
    phpinfo();

Access this file in browser, You will get PHP info.

Install PhpMyAdmin

Run the following command in the terminal:

$ sudo apt-get install phpmyadmin

Need to be configured during installation: Apache → YES → Input MySQL root password → Set up phpMyAdmin password → Confirm Password;

Installation LAMP ( Apache + MySQL + PHP ) on Ubuntu finish.

0.00 avg. rating (0% score) - 0 votes