PetroSky Documentation
  • PetroSky - Docs
  • Getting Started
    • Basics
      • What is a VPS?
      • Operating Systems
      • Connecting to a VPS
    • Utilities
      • Backups
      • Snapshots
      • Reinstall
      • Password Reset
      • noVNC
    • Tutorials
      • Changing SSH Port
      • noVNC - Disabling Firewall
      • Installing Essentials
      • Installing LAMP
      • Installing OpenJDK 11
      • Installing NodeJS 12
Powered by GitBook
On this page
  • What is a LAMP in Linux?
  • Installing a LAMP on Ubuntu 21.04

Was this helpful?

  1. Getting Started
  2. Tutorials

Installing LAMP

LAMP - Tutorials

PreviousInstalling EssentialsNextInstalling OpenJDK 11

Last updated 3 years ago

Was this helpful?

What is a LAMP in Linux?

LAMP stands for Linux, Apache, MySQL, and PHP. Together, they provide a proven set of software for delivering high-performance web applications. Each component contributes essential capabilities to the stack: Linux: The operating system.

Installing a LAMP on Ubuntu 21.04

First of all. Make sure you are using an user with permissions so that you can use commands such as 'apt-get' etc.

1 - Installing Apache WebServer

root@petrosky:/# apt install apache2

2 - Installing MariaDB

root@petrosky:/# apt install mariadb*

3 - Configuring the MariaDB database

root@petrosky:/# mysql_secure_installation

You will be prompted whether to set a password or not. We highly recommend setting up a password for the 'root' DB User and disabling Remote SQL Connections.

4 - Installing PHP

root@petrosky:/# apt install php libapache2-mod-php

Yet we are done! Now we have our LAMP Installed!