Skip to content

Instantly share code, notes, and snippets.

@DilwoarH
Last active June 12, 2018 23:11
Show Gist options
  • Save DilwoarH/a2c799e239dd9fedfe3e8c841199b367 to your computer and use it in GitHub Desktop.
Save DilwoarH/a2c799e239dd9fedfe3e8c841199b367 to your computer and use it in GitHub Desktop.
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install apache2 -y
sudo apt install composer -y
sudo apt-get install nodejs -y
sudo apt-get install npm -y
sudo apt install nodejs-legacy
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt update
sudo apt upgrade
sudo mkdir ~/.composer
sudo mkdir ~/.composer/cache
sudo chown -R $USER:$USER /home/ubuntu/.composer/
sudo chmod -R 755 /home/ubuntu/.composer/cache/
sudo add-apt-repository ppa:ondrej/php
sudo apt update
dpkg -l | grep php | tee packages.txt
sudo apt install php7.2 php7.2-common php7.2-cli php7.2-fpm php7.2-xml php7.2-mbstring php7.2-curl php7.2-mysql php7.2-json php-json-schema php-cli-prompt php7.2-common php-composer-semver php-composer-semver php-composer-spdx-licenses php-symfony-console php-symfony-filesystem php-symfony-finder php-symfony-process -y
sudo apt install zip unzip php7.2-zip -y
sudo apt install php-bcmath -y
sudo apt install php-gd -y
sudo chown ubuntu:www-data -R /var/www/{site-folder}
sudo chmod -R 755 /var/www/{site-folder}/storage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment