Last active
June 12, 2018 23:11
-
-
Save DilwoarH/a2c799e239dd9fedfe3e8c841199b367 to your computer and use it in GitHub Desktop.
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
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