-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
34 lines (20 loc) · 915 Bytes
/
install.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
#/bin/bash
##### Add nginx repos ######
sudo nano /etc/apt/sources.list
deb http://mirrors.digitalocean.com/debian jessie main contrib non-free
deb-src http://mirrors.digitalocean.com/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://mirrors.digitalocean.com/debian jessie-updates main contrib non-free
deb-src http://mirrors.digitalocean.com/debian jessie-updates main contrib non-free
## Update apt dict
sudo apt-get update
#install LEMP
sudo apt-get install php5-fpm php5-mysql
### EXTREMELY IMPORTANT FOR SECURITY!
sudo nano /etc/php5/fpm/php.ini
cgi.fix_pathinfo=0
sudo systemctl restart php5-fpm
<<<<<<<<<<<< Copy vhost here >>>>>>>>>>>>>>>>>>>>>
sudo systemctl reload nginx