Last active
August 22, 2018 11:37
-
-
Save dyanakiev/d90695a5118062ccee920e1ee40ca077 to your computer and use it in GitHub Desktop.
Install apache2 + php7.2 + redis + some extension - Vagrant ubuntu/bionic64 image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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