-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (96 loc) · 4.65 KB
/
index.html
File metadata and controls
98 lines (96 loc) · 4.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>StewPolley Deploy Scripts</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.1/clipboard.min.js" integrity="sha256-hIvIxeqhGZF+VVeM55k0mJvWpQ6gTkWk3Emc+NmowYA=" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script src="copy.js"></script>
<div class="d-flex justify-content-center">
<div>
<h1 class="display-1">Deploy Scripts</h1>
<small>By StewPolley</small>
<p>Just a collection of scripts to help get you deployed on Digital Ocean or Lightsail etc, just a little easier.</p>
<p>Before running these scripts, please ensure the following:</p>
<ul>
<li>You have SSH access to your Server</li>
<li>Your User on the server is sudo non root</li>
<li>You have opened port 80</li>
<li>You have opened port 443</li>
</ul>
<hr>
<h2>Contents</h2>
<ul>
<li>
<a href="#lemp">Lemp Stack</a>
<ul>
<li><a href="#lemp-initial">Initial Setup</a></li>
<li><a href="#lemp-wordpress">Wordpress Installation</a></li>
</ul>
</li>
</ul>
<hr>
<h2 id="lemp">Lemp Stack</h2>
<h4 id="lemp-initial">Install LEMP Stack</h4>
<p>This script installs a LEMP Stack, ready to deply wordpress sites with later on. Comes with Ubuntu 16.04 and Ubuntu 18.04</p>
<table class="table">
<thead>
<tr>
<th>Ubuntu Version</th>
<th>Command</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>16.04</td>
<td><code id="initial1604">curl https://scripts.stewpolley.com/ubuntu-16-04/lemp/initial-setup.sh | sh</code></td>
<td><button class="clippy btn btn-light" data-clipboard-target="#initial1604">📋</button></td>
</tr>
<tr>
<td>18.04</td>
<td><code id="initial1804">curl https://scripts.stewpolley.com/ubuntu-18-04/lemp/initial-setup.sh | sh</code></td>
<td><button class="clippy btn btn-light" data-clipboard-target="#initial1804">📋</button></td>
</tr>
</tbody>
</table>
<p>Please make sure to save the root MYSQL password somewhere secure when finished!</p>
<h4 id="lemp-wordpress">Install Wordpress</h4>
<p>This script will ask you for the following - please have these ready first!</p>
<ul>
<li>MYSQL Root Password (from lemp stack installation)</li>
<li>Domains for the new wordpress install</li>
<li>Directory under <code>/var/www/html/</code> you would like wordpress installed</li>
</ul>
<p>The final step in this script is installing a Let's Encrypt Certificate. This will require user interaction</p>
<table class="table">
<thead>
<tr>
<th>Ubuntu Version</th>
<th>Command</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>16.04</td>
<td><code id="wordpress1604">curl https://scripts.stewpolley.com/ubuntu-16-04/lemp/install-wordpress.sh >> install-wordpress.sh && sh install-wordpress.sh</code></td>
<td><button class="clippy btn btn-light" data-clipboard-target="#wordpress1604">📋</button></td>
</tr>
<tr>
<td>18.04</td>
<td><code id="wordpress1804">curl https://scripts.stewpolley.com/ubuntu-18-04/lemp/install-wordpress.sh >> install-wordpress.sh && sh install-wordpress.sh</code></td>
<td><button class="clippy btn btn-light" data-clipboard-target="#wordpress1804">📋</button></td>
</tr>
</tbody>
</table>
Once this script has run, visit a domain to ensure setup is finalised as this process currently does not setup the admin username/password
<h2>Source Code</h2>
<p>To view the source code, please head over to my <a href="https://github.com/StewPoll/deploy-scripts">Github Repo</a>.</p>
</div>
</div>
</body>
</html>