Last active
September 19, 2021 21:30
-
-
Save arvinesmaeily/73283bc73536e79fc6f47ec16708eab5 to your computer and use it in GitHub Desktop.
Laravel Global Installer (Including PHP, Composer and PHP extensions)
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/sh | |
sudo apt-get update && apt-get upgrade | |
sudo apt-get install php | |
sudo apt-get install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php | |
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)" | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" | |
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] | |
then | |
>&2 echo 'ERROR: Invalid installer signature' | |
rm composer-setup.php | |
exit 1 | |
fi | |
php composer-setup.php --quiet | |
RESULT=$? | |
rm composer-setup.php | |
sudo mv composer.phar /usr/local/bin/composer | |
composer global require "laravel/installer" | |
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc | |
echo 'NOTICE: Please restart your system after successful installation for changes to take effect!' |
pra mim aqui na versão atual hoje do composer mudou o caminho do path q vc está setando no bashrc
Ficando assim >>
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrcSorry, I can't understand you. Please type in English. Thanks.
DerexScript is saying that as of July 21, composer changed the path that you're setting on "bashrc". It was changed to this: "echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc".
Edit: maybe he's refering to line 24.
Thanks for your help. I'll try to fix it when i get my laptop.
Cheers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DerexScript is saying that as of July 21, composer changed the path that you're setting on "bashrc". It was changed to this: "echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc".
Edit: maybe he's refering to line 24.