LAMP Flashcards

1
Q

What does the server do?

A

Accept a request from the client and respond to it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the client do?

A

Web browser and the computer, send requests and

receive returned data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are between protocols and devices?

A

Switches, routers, proxies, gateways, TCP/IP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do Switches, routers, proxies, gateways, TCP/IP do between protocols and devices?

A

ensure that the requests and responses are correctly

transferred

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does TCP stand for?

A

Transmission Control Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does IP stand for?

A

Internet Protocol

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does TCP do?

A

error detection, flow control, and
overall reliability

• ensures the data gets delivered
to the server without getting
lost or duplicated

• resend information that might
get lost in transit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does an internet protocol do?

A

Deliver data through devices
from one network to the next
and all around the world

– IP address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a ‘data link layer’?

A

travel over a piece of wire, a
fiber optic cable, a wireless
network, or a satellite link.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does URL stand for and what do they do?

A

Uniform Resource Locators
– a type of uniform resource indicators (URIs)
– Identify the resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does HTTP stand for and what does it do?

A

HTTP: Hyper Text Transfer Protocol
– used to transfer Hyper Text representation of a resource
from the server to client
– helps clients request/receive information from servers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does HTML stand for and what is it?

A

HTML: Hyper Text Markup Language
– The programming language
– helps render the information appropriately on the client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the seven steps in requesting from a static website?

A

Web pages are delivered to the user exactly as stored
1. Enter http://server.com into browser
2. Browser looks up the IP address for server.com
3. Browser issues a request for the home page
4. Request crosses the internet and arrives at the web
server
5. Web server looks for the web pages on its disk
6. Web page is retrieved by the server and returned to the
browser
7. Browser displays the web page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why use a dynamic website instead of static?

A

Provide a “live”, “dynamic”, or “interactive” user
experience.

Content (text, images, form fields, etc.) can change
• In response to different contexts or conditions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the six main components of a dynamic website?

A

– PHP
• PHP handles all the main work on the web server

– MySQL
• MySQL manages all the data

– JavaScript
• JavaScript can also talk with your PHP code on the web server
whenever it needs to update something

– CSS
• the combination of CSS and JavaScript looks after web page
presentation

– HTML 5
• A new standard HTML

– Webserver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the three strategies for dynamic web content?

A

Client side scripting

Server side scripting

Hybrid

17
Q

Describe client side scripting

A

Processes the web page using HTML scripting in the
browser.

It uses:

DOM
JavaScript
CSS

18
Q

Describe server side scripting

A

Web page construction is controlled by an application
server
– Generate content, parameters, client-side code.

Dynamically inserting the contents of one
html file—or the output of a system call—into
another one).
– PHP’s simplicity and built-in links to the MySQL
database program
– Perl (an alternative to the PHP language)

19
Q

Describe a hybrid type of scripting

A

Combine both client and server side technologies

Single page for variant web content
– combination of both client-side scripting and server-side requests.
• Ajax engine sits on the browser requesting,
– send requests for parts of its DOM items to the server for data
– The server returns the data which is then processed by a client side
script (JavaScript).
– web content rendered on the same page
• Benefit
– client does not request the entire webpage to be regenerated by the
server
• only the content that will change is transmitted.
• reduce server load time
– send requests to web servers in the background
• without the web user being aware that this is going on.
– Google Maps uses Ajax techniques.

20
Q

What does LAMP stand for?

A

Linux
APACHE
MySQL
PHP

21
Q

Describe apache Http server

A

The most popular web server on the public
Internet
– Serve 52.27% of all active websites, estimated In
June 2014
– Followed by nginx with 14.36%
• Apache is open-source software
– developed and maintained by an open community
of developers
• Support a wide variety of features

22
Q

Describe mySQL

A

MySQL is a multithreaded, multi-user, SQL
database management system (DBMS)
– Acquired by Oracle Corporation in 2010.
• Alternatives:
– RDBMS: MariaDB or PostgreSQL
– NoSQL DB: MongoDB
• JSON-like documents with dynamic schemas
• Making the integration of data in certain types of
applications easier and faster

23
Q

Describe PHP

A

A server-side scripting language
– designed for web development
• generate the resulting web page
– also used as a general-purpose programming language
• PHP code/commands can be either
– embedded directly into an HTML source document, or
– Saved in an external/ file rather than calling
– interpreted by a web server via a PHP processor
module
• It has command-line interface capability
• can be used in standalone graphical applications

24
Q

Describe high availability

A

Requirement for websites: High-availability
– Multiple web and database servers
• serve large numbers of requests
• provide services that demand high uptime

25
Q

What is load balancing?

A
Placing a load
balancer in front of
them
• Using Linux Virtual
Server (LVS)
– Logical aggregation of
resources from
multiple servers
– Distribution of the
workload across
multiple servers
26
Q

What is data redundancy?

A

– MySQL provides internal replication mechanisms
• master/slave relationship between the original
database (master) and its copies (slaves)
– Without interrupting the users of services
• Some down, others are still available
– Without data loss when hardware failures
– Almost linear improvements in data access
• when database read operations much higher than the
number of write/update operations