Install Apache, MySQL and PHP 8 (LAMP) on Ubuntu 20.04 LTS

Installing Apache on Ubuntu 20.04

$ sudo apt install apache2 -y
$ sudo systemctl start apache2.service
$ sudo systemctl enable apache2.service

Installing MySQL/MariaDB

$ sudo apt install mariadb-server mariadb-client -y
$ sudo systemctl enable mariadb.service
$ sudo mysql_secure_installation

Installing PHP 8 on Ubuntu 20.04

$ sudo apt install php php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y
$ sudo systemctl restart apache2.service

Conclusion

Web developer and system admin

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Simple Keychain wrapper in Swift

Publishing nuget libraries to Github Packages using paket

World of Defish Private Testnet Winners

Creating Thumbnail from video in Flutter

From Teaching to Programming: Why I Joined a Coding Bootcamp Hackbright for a Career Change

Value Prediction in the Multi-core Era

REMOTE HIRE .NET DEVELOPER IN MIAMI

Leetcode easy solution with Python 學習紀錄

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kaima Abbes

Kaima Abbes

Web developer and system admin

More from Medium

How to connect PHP application to MSSQL, setup on 2 different servers.

Features of Laravel Framework

Calculate and pass on Stripe fees in your PHP application

Laravel 9