Skip to content

Instantly share code, notes, and snippets.

@devsalman
Last active October 23, 2017 20:52
Show Gist options
  • Select an option

  • Save devsalman/ba317884fd598286f7df9c10582eea42 to your computer and use it in GitHub Desktop.

Select an option

Save devsalman/ba317884fd598286f7df9c10582eea42 to your computer and use it in GitHub Desktop.
#!/bin/sh
#COLORS
# Reset
Color_Off='\033[0m' # Text Reset
# Regular Colors
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Purple='\033[0;35m' # Purple
Cyan='\033[0;36m' # Cyan
echo -e "$Green ------------------------------------------------------------ $Color_Off"
echo -e "$Green Vagrant Centos 7 LAMP Provisioning Script $Color_Off"
echo -e "$Green Version : v0.0.1 $Color_Off"
echo -e "$Green Created By : Salman El Farisi (dev.salman.farisi@gmail.com) $Color_Off"
echo -e "$Green ------------------------------------------------------------ $Color_Off"
echo -e "$Yellow \n ###### Apache ##### $Color_Off"
sudo yum -y install httpd
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl status httpd
echo -e "$Yellow \n ###### Installing PHP 5.6 ##### $Color_Off"
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
sudo yum install php56w php56w-opcache php56w-common php56w-mysql php56w-pdo php56w-mbstring -y
echo -e "$Yellow \n ###### Installing MariaDB RDBMS ##### $Color_Off"
yum install mariadb-server mariadb -y
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo systemctl status mariadb
echo -e "$Yellow \n ###### Installing Git ##### $Color_Off"
sudo yum install git-all -y
git --version
echo -e "$Yellow \n ###### Installing WGet ##### $Color_Off"
sudo yum install wget -y
echo -e "$Yellow \n ###### Installing Composer ##### $Color_Off"
wget https://getcomposer.org/download/1.3.3/composer.phar -P /tmp
sudo chmod +x /tmp/composer.phar
sudo mv /tmp/composer.phar /usr/bin/composer
composer --version
echo -e "$Yellow \n ###### Installing VIM ##### $Color_Off"
sudo yum install vim -y
echo -e "$Yellow \n ###### Node JS (v6.10.0) ##### $Color_Off"
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
nvm install v6.10.0
echo -e "$Yellow \n ###### Installing Bower ##### $Color_Off"
npm install -g bower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment