-
Notifications
You must be signed in to change notification settings - Fork 87
/
laravel-queue-worker.sh
39 lines (28 loc) · 1.11 KB
/
laravel-queue-worker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
GREENCOLOR='\033[1;32m'
YELLOWCOLOR='\033[1;33m'
NC='\033[0m'
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get -y autoremove
sudo service apache2 stop
sudo apt-get remove -y apache2*
sudo apt-get -y autoremove
printf "${GREENCOLOR}Nice And Clean,Let's Begin! ${NC} \n\n"
sudo apt-get update
sudo apt-get -y install zsh htop zip unzip composer
printf "${GREENCOLOR}Adding PPA For PHP7.2 ${NC} \n\n"
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php -y
sudo apt-get update
printf "${YELLOWCOLOR}Installing PHP7.2 ${NC} \n"
sudo apt-get -y install php7.2
sudo apt-get -y install php7.2-mysql
sudo apt-get -y install php7.2-curl php7.2-xml php7.2-json php7.2-gd php7.2-mbstring php7.2-bcmath
printf "${GREENCOLOR}Successfully Installed PHP7.2 ${NC} \n\n"
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get remove -y apache2*
sudo apt-get -y autoremove
printf "${YELLOWCOLOR}Installing Supervisor ${NC} \n"
sudo apt-get -y install supervisor
printf "${GREENCOLOR}Everything is all set! ${NC} \n\n"