Last active
August 13, 2021 09:57
-
-
Save memoryleak/3e4ab8c8c629da7e305869c746f76f30 to your computer and use it in GitHub Desktop.
Ubuntu 18.04 with PHP 7.3, 7.4 and Docker
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
#!/usr/bin/env bash | |
./install-docker.sh | |
./install-php.sh | |
./install-nginx.sh | |
./install-cleanup.sh |
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
#!/usr/bin/env bash | |
sudo apt autoremove -y |
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
#!/usr/bin/env bash | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose | |
sudo usermod -aG docker $USER | |
sudo systemctl enable --now docker | |
sudo touch /etc/docker/daemon.json | |
echo '{ "bip":"172.16.0.1/16" }' | sudo tee /etc/docker/daemon.json | |
sudo systemctl restart docker |
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
#!/usr/bin/env bash | |
sudo apt install -y nginx | |
sudo systemctl enable --now nginx | |
sudo chown -R $USER /var/www | |
echo "" | |
echo "--------------------------------" | |
echo "Configure /etc/nginx/nginx.conf:" | |
echo "Replace 'user www-data;' with your username and restart nginx" |
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
#!/usr/bin/env bash | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt remove php7.2* php7.1* | |
sudo apt install -y php7.3 \ | |
php7.3-bcmath \ | |
php7.3-cli \ | |
php7.3-common \ | |
php7.3-enchant \ | |
php7.3-fpm \ | |
php7.3-gd \ | |
php7.3-intl \ | |
php7.3-json \ | |
php7.3-ldap \ | |
php7.3-mbstring \ | |
php7.3-opcache \ | |
php7.3-apcu \ | |
php7.3-mcrypt \ | |
php7.3-oauth \ | |
php7.3-uuid \ | |
php7.3-yaml \ | |
php7.3-zip \ | |
php7.3-pgsql \ | |
php7.3-php \ | |
php7.3-redis \ | |
php7.3-pspell \ | |
php7.3-soap \ | |
php7.3-xml \ | |
php7.3-xmlrpc | |
sudo apt install -y php7.4 \ | |
php7.4-bcmath \ | |
php7.4-cli \ | |
php7.4-common \ | |
php7.4-enchant \ | |
php7.4-fpm \ | |
php7.4-gd \ | |
php7.4-intl \ | |
php7.4-json \ | |
php7.4-ldap \ | |
php7.4-mbstring \ | |
php7.4-mysqlnd \ | |
php7.4-opcache \ | |
php7.4-pdo \ | |
php7.4-apcu \ | |
php7.4-mcrypt \ | |
php7.4-oauth \ | |
php7.4-uuid \ | |
php7.4-yaml \ | |
php7.4-zip \ | |
php7.4-pgsql \ | |
php7.4-php\ | |
php7.4-pspell \ | |
php7.4-soap \ | |
php7.4-xml \ | |
php7.4-xmlrpc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment