Skip to content

Instantly share code, notes, and snippets.

@mfcodeworks
Last active September 11, 2019 04:01
Show Gist options
  • Save mfcodeworks/2f5989d2eeff3e8a1cb0525a4086e21e to your computer and use it in GitHub Desktop.
Save mfcodeworks/2f5989d2eeff3e8a1cb0525a4086e21e to your computer and use it in GitHub Desktop.
Install LAMP with MariaDB for Ubuntu
#!/bin/bash
sudo apt update
sudo apt install apache2 software-properties-common -y
sudo systemctl enable apache2
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic main'
sudo add-apt-repository universe
sudo apt update
sudo apt install mariadb-server mariadb-client -y
mysql_secure_installation
sudo apt install php libapache2-mod-php php-mysql -y
sudo apt install php-common php-mbstring php-xmlrpc php-soap php-apcu php-smbclient php-ldap php-gd php-xml php-intl php-json php-imagick php-cli php-ldap php-zip php-curl phpmyadmin -y
sudo apt install redis-server php-redis -y
sudo systemctl enable redis-server
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment