Last active
August 26, 2018 19:19
-
-
Save fabiojaniolima/7511ba52a6906c4e46bea4daf9c2da5c 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
############### | |
### PHP 7.1 ### | |
############### | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Sempre que questionado, responda "Y" | |
sudo apt-get install software-properties-common python3-software-properties -y | |
sudo apt-get purge php5-common -y | |
sudo apt-get update | |
sudo apt-get autoremove -y | |
sudo apt-get install -y language-pack-en-base | |
# Quando o processo for interrompido, pressione ENTER para continuar | |
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install unzip libapache2-mod-php7.1 php7.1-curl php7.1-cli php7.1-dev php7.1-gd php7.1-intl php7.1-mcrypt php7.1-json php7.1-mysql php7.1-opcache php7.1-bcmath php7.1-mbstring php7.1-soap php7.1-xml php7.1-zip -y | |
sudo service apache2 restart | |
################# | |
### MySQL 5.7 ### | |
################# | |
wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb | |
# Responsa: 1 (Enter), 2 (Enter) e 4 (Enter) | |
sudo dpkg -i mysql-apt-config_0.8.9-1_all.deb | |
sudo apt-get update | |
sudo apt-get install mysql-server -y | |
mysql -u root | |
######################### | |
### Composer - update ### | |
######################### | |
# É necessário executar este comando antes de rodar o composer pela primeira vez | |
sudo composer self-update | |
############################ | |
### Laravel - permissões ### | |
############################ | |
# Necessário para que o Laravel consiga gerar arquivos temporários e de log | |
sudo chgrp -R www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment