-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdependencies.sh
47 lines (37 loc) · 878 Bytes
/
dependencies.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
40
41
42
43
44
45
46
47
# OS Assumptions
#
# Distributor ID: Ubuntu
# Description: Ubuntu 16.04.1 LTS
# Release: 16.04
# Codename: xenial
#
# Returned by running $lsb_release -a
# PHP
#
# In /etc/php/7.0/apache2/php.ini make the following changes
# memory_limit = 128M
# upload_max_filesize = 100M
# post_max_size = 128M
sudo usermod -aG sudo ubuntu
# Update apt-get
sudo apt-get update
# Install Apache2
sudo apt-get install apache2
sudo apache2ctl configtest
sudo systemctl restart apache2
sudo ufw app list
sudo ufw app info "Apache Full"
sudo ufw allow in "Apache Full"
# Install PHP
sudo apt-get install php7.0
sudo apt-get install libapache2-mod-php7.0
# Install Pandoc
sudo apt-get install pandoc
# Install WKHTMLTOPDF
sudo apt-get install wkhtmltopdf
# Install Xvfb
sudo apt-get install xvfb
# Install zip
sudo apt-get install zip
# Restart Apache2
sudo service apache2 restart