-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBuildNotes.txt
More file actions
141 lines (110 loc) · 3 KB
/
BuildNotes.txt
File metadata and controls
141 lines (110 loc) · 3 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
AWS FVP Build notes:
EC2
t2.medium
i-0e9df2bf80ed3feda
VPC
vpc-a1fa28cd
File System:
EBS: vol-03c91fbae7e75bc46
18-208-127-93
Manual Snapshot: snap-05350ab0635de0369
Generated Snapshot for image: snap-05350ab0635de0369
Image: ami-070c174a96e4d6cdb
Lamp Stack
sudo apt update
sudo apt-get install apache2
sudo apt update
sudo apt-get install mysql-server
sudo apt update
sudo apt install autoconf zlib1g-dev php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-dev php-pear php-bcmath libapache2-mod-php php-mcrypt php-mysql
Mysql Credentials: FVPUser/1400KStreetStreetNW!
/etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
sudo mysql
CREATE USER 'FVPUser'@'localhost' IDENTIFIED BY '1400KStreetStreetNW!';
GRANT ALL PRIVILEGES ON * . * TO 'FVPUser'@'localhost';
Install Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
SMTP Client (composer require phpmailer)
Install npm (sudo apt install npm & npm init)
Install Fineuploader (npm install fine-uploader)
Add IAM User: videoFileManager
- Access Key: AKIA5GGQGDXJ7N57DNHH
- Secret Access Key: 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
FFMPEG
sudo apt-get install ffmpeg
composer require php-ffmpeg/php-ffmpeg
GD
sudo apt-get install php7.4-gd
GOOGLE SPEECH TO TEXT FOR RUSSIAN
composer require google/cloud-speech
export GOOGLE_APPLICATION_CREDENTIALS="/var/www/html/FVP/inc/client_secret.json"
Added export GOOGLE_APPLICATION_CREDENTIALS to ~/.bashrc
sudo apt install php-bcmath
sudo apt install php-pear
sudo apt install php-dev
sudo pecl install protobuf
- add "extension=protobuf.so" to php.ini
sudo grpc install protobuf
- add "extension=grpc.so" to php.ini
SES
SMTP Credentials:
ses-smtp-user.20201207-124002
SMTP Username: AKIA5GGQGDXJV552RJSH
SMTP Password: BARWyTT6oToqa0t9SI+M93uZ2LTLZS+TBFHsXHtxAx40
S3
arn:aws:s3:::flagship-video-project
Add CORS configuration
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"POST",
"PUT",
"DELETE",
"HEAD"
],
"AllowedOrigins": [
"3.91.222.187" // TO DO: UPDATE to HAWAII
],
"ExposeHeaders": [
"ETag"
],
"MaxAgeSeconds": 3000
}
]
IAM
External principal (IAM User)
arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E152Q6KG3739IO
Create Role : FVP_S3_Access_Mgr
Create Policy : FVP_S3_Access
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::test"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::flagship-video-project/*"
]
}
]
}
Deal with :
sg-c405ffab