Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save codedeep79/b1fcaaf1d9d544330b606d1754baf3ab to your computer and use it in GitHub Desktop.

Select an option

Save codedeep79/b1fcaaf1d9d544330b606d1754baf3ab to your computer and use it in GitHub Desktop.
Installing LAMP on Debian 10 (Buster)

Updating the Debian Linux, run:

sudo -- sh -c 'apt update && apt upgrade'

Install Apache, execute:

sudo apt install apache2

Update the Firewall and open port 80 and 443, run:

sudo ufw allow in "WWW Full"

Set up MariaDB:

sudo apt install default-mysql-server

Secure your MariaDB server, type:

sudo mysql_secure_installation

PHP 7.3 installation:

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

Test your LAMP setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment