Skip to content

Instantly share code, notes, and snippets.

@dyanakiev
Last active August 22, 2018 11:37
Show Gist options
  • Save dyanakiev/d90695a5118062ccee920e1ee40ca077 to your computer and use it in GitHub Desktop.
Save dyanakiev/d90695a5118062ccee920e1ee40ca077 to your computer and use it in GitHub Desktop.
Install apache2 + php7.2 + redis + some extension - Vagrant ubuntu/bionic64 image
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get install -y software-properties-common
add-apt-repository -y ppa:ondrej/php
add-apt-repository -y ppa:ondrej/apache2
apt-get update
apt-get install -y curl tar unzip git wget nano htop redis-server
apt-get install -y apache2
apt-get install -y php7.2 php7.2-cli php7.2-gd php7.2-mysql php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-bcmath php7.2-xml php7.2-redis php7.2-curl php7.2-zip libapache2-mod-php7.2
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
touch login-www-data.sh
echo "su -l www-data -s /bin/bash" > login-www-data.sh
a2enmod rewrite
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment