How to install LAMP stack on Ubuntu 18.04

March 09, 2019 Post tags: how | ubuntu | linux | apache | mysql | lamp |

What is LAMP?

LAMP is an archetypal model of web service stacks, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL relational database management system (RDBMS), and the PHP programming language. The LAMP components are largely interchangeable and not limited to the original selection. As a solution stack, LAMP is suitable for building dynamic websites and web applications.

Prerequisites

You need to have an Ubuntu 18.04 server with a non-root sudo-enabled user account.

Don't have a server? Rent one for cheap on services: AWS, DigitalOcean, GoogleCloud

If you need help you can contact us.

Setup LAMP

Installing Apache and adjust the firewall to allow web traffic:

sudo apt update
sudo apt install apache2
sudo ufw allow in "Apache Full"

Installing MySQL:

sudo apt install mysql-server
sudo mysql_secure_installation
sudo mysql

Configure the root account to authenticate with a password don't forget to change 'password' word to your password:

SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
exit

Installing PHP:

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

Product - ORI PWA

Speed up your business with PWA application. PWA can be your website and mobile application for both Android and iOS.

We have taken special care to include everything you need. Reduce your headaches both during production and regular maintenance.

Our PWA can pull data from anywhere, custom RESTFUL api, Word Press, Magento, Drupal, Contentful, XML, JSON, spreadsheets and more. We can organize, display and process pulled data per your liking.

Do you want a hassle-free, modern and super fast website?

Find out more

Comments

ORI provides full business web identity creation service! Contact us