-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
20 lines (17 loc) · 714 Bytes
/
init.sh
File metadata and controls
20 lines (17 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# resolves console output warnings during initial server setup
echo "console-setup console-setup/charmap47 select UTF-8" > encoding.conf
debconf-set-selections encoding.conf
rm encoding.conf
export TERM=xterm
export DEBIAN_FRONTEND=noninteractive
# update apt repositories
echo "Updating package lists..."
apt-get -qq update
echo "Upgrading existing installed packages..."
apt-get -qq upgrade -y
# install LAMP essentials
echo "Installing required programs/libraries..."
apt-get -qq install awscli apache2 mysql-client php libapache2-mod-php php-mcrypt php-mysql php-curl php-mbstring php-gd php-xml php-xmlrpc php-zip -y
systemctl enable apache2
echo "*** init.sh execution complete ***" | wall