-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgroup4.html
More file actions
141 lines (99 loc) · 6.61 KB
/
group4.html
File metadata and controls
141 lines (99 loc) · 6.61 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Group 4 Linux Shell</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="logo">
<h1>ITC134 FL16 LINUX Shell Resource</h1>
</div>
<hr />
<header>
<div id="menu">
<ul>
<li class="inactive"><a href="index.html">Home</a></li>
<li class="inactive"><a href="group1.html">Group 1</a></li>
<li class="inactive"><a href="group2.html">Group 2</a></li>
<li class="inactive"><a href="group3.html">Group 3</a></li>
<li class="current_page_item"><a href="group4.html">Group 4</a></li>
<li class="inactive"><a href="group5.html">Group 5</a></li>
</ul>
</div>
</header>
<div id="page">
<div id="content">
<div class="post">
<h2 class="title">Work of Group 4: Lamp Stack Deployment</h2>
<div class="entry">
<p>So you’re setting up a server for your website and you’ve decided to go with the LAMP stack.
This requires installing Linux, Apache, PHP, and MySQL…, but you just don’t have a lot of time.
Sure would be nice if there was a way to automate the process, kind of do it all in one step!</p>
<p>Ok, some of you may be new to this and wondering “What is the LAMP stack?” Let’s start with a “stack” which is
simply a group of applications or programs placed on a server to support websites. These programs work together
and support the various pieces of the website. The LAMP stack, as you may have guessed, includes the abovementioned
programs: Linux, Apache, MySQL, and PHP/Python/Perl (depends which of the three you choose to work with.)</p>
<p>Here’s a really easy to understand definition* of LAMP stack: LAMP stack is a popular open source web platform
commonly used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP/Python/Perl
and is considered by many the platform of choice for development and deployment of high performance web
applications which require a solid and reliable foundation. It’s important to note the piece about it being
open source, because who doesn’t like free, especially when you’re starting out?!</p>
<p>*found at <a href="https://www.turnkeylinux.org/lampstack">Turnkey Linux</a></p>
<p>Now that we’ve got the basics out of the way, let’s dig into the How-To of installing this stack in one easy step.
First, you will need to have root privileges on your virtual private server (VPS). It will probably be running
Ubuntu already, but if not you’ll want to install that first.</p>
</div>
</div>
<div class="post">
<h2 class="title">Lamp Stack Deployment Code Snippets</h2>
<div class="entry">
<h3>Here are snip-its of the code you will use to execute installing the LAMP stack and what steps they fulfill.</h3>
<p>Copy the lamp.sh file to the current working directory. After you have copied the file you will need to allow
scripts to run on your machine.</p>
<pre>chmod +x lamp.sh </pre>
<p>Once you have enabled scripts to run on your machine you will need start running the script.</p>
<pre>sudo ./lamp.sh </pre>
<p>Let's examine the script to see what it does. After the echo statements we update all the
repositories on the machine.</p>
<pre>sudo apt-get update </pre>
<p>Then we proceed to install the Apache server on the local machine.</p>
<pre>sudo apt-get -y install apache2 </pre>
<p>Now need set the root password for MySQL; using debconf we will set the root password to MYPASSWORD123.</p>
<pre>sudo debconf-set-selections 'mysql-server mysql-server/root_password password MYPASSWORD123'</pre>
<pre>sudo debconf-set-selections 'mysql-server mysql-server/root_password_again password MYPASSWORD123' </pre>
<p>Having set the root password we can now install MySQL Server.</p>
<pre>sudo apt-get -y install mysql-server mysql-client </pre>
<p>Finally, we are going to install PHP7.0 with MySQL, Curl, Json and CGI configured along with Apache2.</p>
<pre>sudo apt-get -y install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7 </pre>
<p>The last thing we need to do is restart the system and verify it works:</p>
<pre>sudo systemctl restart apache2 </pre>
<h3>For a more in depth step by step process please view <a href= "https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu">LAMP Installation Guide </a></h3>
</div>
</div>
</div>
<div id="sidebar">
<h2>Resource Links: </h2>
<ul>
<li><a href="https://en.wikipedia.org/wiki/LAMP_(software_bundle)">What Is LAMP?</a></li>
<li><a href="https://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages">List of Apache-MySQL-PHP Packages</a></li>
<li><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-create-lamp-stack?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json">Other How To Deploy A LAMP Stack Atricles</a></li>
<li><a href="https://en.wikipedia.org/wiki/Virtual_machine">What Is A Virtual Machine?</a></li>
<li><a href="http://www.inmotionhosting.com/support/website/cpanel-account-management/obtain-root-access">How to set root privileges on VPS</a></li>
</ul>
</div>
<div style="clear: both;"> </div>
</div>
<footer>
<small>
© 2016, All Rights Reserved
<br />
<a href="http://validator.w3.org/check/referer" target="_blank">Valid HTML</a>
<br />
<a href="http://jigsaw.w3.org/css-validator/check?uri=referer" target="_blank">Valid CSS</a>
</small>
</footer>
</body>
</html>