How to install LAMP on Ubuntu?

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install

Просмотр обзора
  1. Home
  2. /
  3. it-programming
  4. /
  5. How to install LAMP on Ubuntu?
Author:
Subjects: IT, Programming
datePublished:

How to install LAMP on Ubuntu?

LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest.

Install Apache2

sudo apt-get update
sudo apt-get install apache2

Install MYSQL

sudo apt-get install mysql-server

Install PHP

sudo apt install php libapache2-mod-php php-mysql

Restart apache so that all of the changes take effect:

sudo service apache2 restart