Created
April 27, 2023 11:27
-
-
Save nmngt/6e7fc1df61a5e51609c3c177e1134349 to your computer and use it in GitHub Desktop.
add php composer to hetzner webhosting
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
mkdir ~/bin | |
mkdir ~/bin/composer | |
cd ~/bin/composer | |
wget https://getcomposer.org/composer.phar | |
echo "# php version" >> ~/.bashrc | |
echo "export PHPVERSION=8.0 " >> ~/.bashrc | |
echo "" >> ~/.bashrc | |
echo "# composer alias" >> ~/.bashrc | |
echo "alias composer='php -d allow_url_fopen=on ~/bin/composer/composer.phar'" >> ~/.bashrc | |
source ~/.bashrc | |
composer -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment