Last active
January 15, 2020 06:26
-
-
Save nnnlog/0bbb5f0df944930899bf69184c427c31 to your computer and use it in GitHub Desktop.
Optimized PHP7 downloader
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/bash | |
DOWNLOAD_URL="https://github.com/NLOGPlugins/bin/raw/master/bin.zip" | |
LIBRARY_PATH="/root/php_compile/bin" | |
sudo rm -rf temp.log bin $LIBRARY_PATH && sudo touch temp.log | |
echo -n "[PHP] downloading..." | |
curl -L $DOWNLOAD_URL -o bin_.zip >> temp.log 2>&1 | |
echo -n " extracting..." | |
unzip -qqo bin_.zip >> temp.log 2>&1 | |
echo -n " loading extensions..." | |
sudo mkdir -p $LIBRARY_PATH | |
sudo cp -r ./bin/* $LIBRARY_PATH/ | |
echo " done!" | |
#echo -n "[Compiler] adding repository..." | |
#sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y >> temp.log 2>&1 | |
#echo -n " installing..." | |
#sudo apt install gcc-9 g++-9 -y >> temp.log 2>&1 | |
#echo " done!" | |
sudo rm bin_.zip temp.log | |
./bin/php7/bin/php -m | |
./bin/php7/bin/php -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment