Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. Color_Off='\033[0m'
  4.  
  5.  
  6. Red='\033[0;31m'
  7. Green='\033[0;32m'
  8. Yellow='\033[0;33m'
  9. Purple='\033[0;35m'
  10. Cyan='\033[0;36m'
  11. echo -e "**********************************************************************************************
  12. **********************************************************************************************
  13. ************************ * ****** ** ** ****** ************************
  14. ************************ * * * * * * * * ************************
  15. ************************ * ****** * * * * ****** ************************
  16. ************************ * * * * * * * ************************
  17. ************************ ****** ****** * * * * ************************
  18. **********************************************************************************************
  19. **********************************************************************************************"
  20.  
  21. echo -e "$Cyan \n Installing PHP & Requirements $Color_Off"
  22. echo -e "$Cyan \n Verifying installs$Color_Off"
  23.  
  24. echo -e "$Cyan \n Updating System.. $Color_Off"
  25. sudo apt-get update -y && sudo apt-get upgrade -y
  26.  
  27.  
  28.  
  29. sudo apt-get update
  30. sudo apt-add-repository ppa:ondrej/php -y
  31. sudo apt-add-repository ppa:nginx/development -y
  32. sudo apt-add-repository ppa:chris-lea/redis-server -y
  33. sudo apt-add-repository ppa:ondrej/apache2 -y
  34. sudo apt-get update
  35. sudo apt-get install curl git
  36. echo -e "$Cyan \n Installing phpMyAdmin $Color_Off"
  37. clear
  38. echo "Configuring Nginx for PHP..."
  39.  
  40. sudo apt-get install -y --force-yes php7.0-cli php7.0-dev \
  41. sudo php-sqlite3 php-gd \
  42. sudo php-curl php7.0-dev \
  43. echo -e "$Cyan \n Installing MySQL $Color_Off"
  44. echo "Configuring Nginx for PHP..."
  45.  
  46. sudo php-imap php-mysql php-memcached php-mcrypt php-mbstring \
  47. sudo php-xml php-imagick php7.0-zip php7.0-bcmath php-soap \
  48. sudo php7.0-intl php7.0-readline
  49. sudo apt-get install -y --force-yes nginx php7.0-fpm
  50. sudo service php7.0-fpm restart
  51. sudo curl https://install.meteor.com/ | sh
  52. sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  53. sudo apt-get install -y nodejs
  54. npm -v
  55. node -v
  56. sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
  57.  
  58. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
  59. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  60. sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
  61. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
  62. sudo apt-get update
  63. sudo apt-get install gcc git ruby ruby-dev libcurl4-openssl-dev make zlib1g-dev
  64. sudo apt-get install docker-ce
  65.  
  66. echo "Done done done!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement