Sometimes you just want to make your life easier on deploying a server in seconds with all the dependencies you need to run many languages or maybe a LAMP config easily.
I made this whole compilation guys, but right now I dont feel like finishing it. So I decided to add a github repo so you can just clone and run it very quick. But I will be updating this post frequently. Just make sure to comment in order to report a bug or something that needs to be modified, also there https://github.com/wizardofbots/wizardinstall
So I decided to call it wizardinstall 😉 we will be adding the repos you need in order to have everything ready to start on a $5 cents digitalocean server to have a linux shell on your smartphone doing a realtime connection and executing your scripts!
So check out the code, you will learn how to use it, and understand the logics, will add comments on each line if necessary so you guys understand:
#!/bin/bash # ****************************************** # Program: Dev mode install # Developer: Wizard of Bots # Site: http://wizardofbots.com/network # Github: https://github.com/wizardofbots/wizardinstall # Date: 16-07-2016 # ****************************************** # this line below is checking if the lsb_release -is comment response is # equal to Ubuntu and also Debian, because we can use apt-get instead of yum. if [ "`lsb_release -is`" == "Ubuntu" ] || [ "`lsb_release -is`" == "Debian" ] then # save time and install essential and then all libraries sudo apt-get install -y build-essential; # install git sudo apt-get install git; # git is really useful, in fact clone this from: https://github.com/wizardofbots/wizardinstall # install python sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev; sudo apt-get python2.7; sudo apt-get install python-software-properties; # install php sudo apt-get install apache2; sudo apt-get install curl; sudo apt-get install mysql-server; sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql; sudo systemctl restart apache2; sudo systemctl status apache2; sudo apt-get install php-cli; # install package manager for PHP: Composer sudo apt-get update; # install perl sudo apt-get install perl; # install ruby sudo apt-add-repository ppa:brightbox/ruby-ng sudo apt-get update sudo apt-get install ruby1.9.3 # installing nodejs sudo apt-get update; curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -; sudo apt-get install -y nodejs; sudo chmod 777 -R /var/www/; sudo printf "<?php\nphpinfo();\n?>" > /var/www/html/info.php; sudo service apache2 restart; # then this logic identifies if the release is CentOS or RedHat so we can use yum elif [ "`lsb_release -is`" == "CentOS" ] || [ "`lsb_release -is`" == "RedHat" ] then # this lines are not working properly right now. So wait for the update sudo yum -y install httpd mysql-server mysql-devel php php-mysql php-fpm; sudo yum -y install epel-release phpmyadmin rpm-build redhat-rpm-config; sudo yum -y install mysql-community-release-el7-5.noarch.rpm proj; sudo yum -y install tinyxml libzip mysql-workbench-community; sudo chmod 777 -R /var/www/; sudo printf "<?php\nphpinfo();\n?>" > /var/www/html/info.php; sudo service mysqld restart; sudo service httpd restart; sudo chkconfig httpd on; sudo chkconfig mysqld on; # we will add pacman for Arch Linux soon else echo "Unsupported Operating System"; fi