Table of Contents
The LAMP stack is a simple but popular package of widely supported web server software. It generally refers to the combination of Linux, Apache, MySQL and PHP. The LAMP stack is a great starting point for users who want to quickly and easily get a web server up and running on their new cloud server.
In this guide, we’ll walk you through the steps required to install a simple web server with Ubuntu 20.04, Apache2, MariaDB and PHP. Together, these components form a reliable LAMP stack and the foundation for building your websites! The steps in this guide are written for use with a newly set up Ubuntu 20.04 UpCloud Cloud Server. The steps and installed software may vary on other platforms. We have mentioned steps below to Install LAMP stack on Ubuntu
Steps to Install LAMP stack on Ubuntu
Update your system
Install Mysql
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
sudo apt-get install apache2 apache2-doc apache2-npm-prefork apache2-utils libexpat1 ssl-cert
sudo apt-get install libapache2-mod-php7.0 php7.0 php7.0-common php7.0-curl php7.0-dev php7.0-gd php-pear php-imagick php7.0-mcrypt php7.0-mysql php7.0-ps php7.0-xsl
sudo apt-get install phpmyadmin
Final Words
So here we conclude our article on how to Install LAMP stack on Ubuntu. LAMP is one of the most popular and widely used software stacks. It stands for Linux, Apache, MySQL and PHP and is used for hosting static and dynamic web applications. It is a hosting stack widely used among developers and system administrators and is well accepted by most major hosting companies. Let’s briefly explain the components of the stack.