Chat with us, powered by LiveChat Module 02 Lab Worksheet | WriteDemy

Module 02 Lab Worksheet

Introduction to LAMP

LAMP stands for Linux – Apache – MySQL – PHP. This lab will give you a short tour of these features in your workspace.

Log in to your CodeAnywhere workspace if you have not already done so.

Linux

This is the underlying operating system running on your development server. We won’t be doing much at this level but to access it you can use the SSH (Secure Shell) Terminal window at the bottom of your workspace. (If it’s not there, right-click on your Container name and select SSH Terminal.)

If you have some experience with Linux, you can try out some commands here. Otherwise, this is beyond the scope of this class.

Apache

This is the Web server. (Technically, Apache is the organization name and the server is called httpd.)

You can add pages to your Web site by simply adding files and folders to your Container.

Create a sample Web page

Right-click on your Container and select Create File.

In the Create File dialog, enter the name test_page.html.

After a moment, your new file will appear under your Container. Click on the file name to open it in your editor. Now we need to add some HTML code.

Your editor comes with a tool called Emmet. Emmet helps you write HTML by doing a lot of the work for you.

In test_page.html, enter ! (the exclamation point) and press .

A basic HTML skeleton will automatically be entered into your file.

Change the

In the

In between the h2 tags, enter the text This is my Emmet-generated Web Page.

There is much more you can do with Emmet but that should do it for now.

Save your changes.

Test Your Web page

In your MyBoxInfo.txt file, locate the line reading

To access an application running on your Container use the following link (ports 1024-9999

Under this is the URL of your Container Web page.

Copy and paste this into a new browser window and press .

You should see a listing of links to the files in your Container. (You may wish to bookmark this.)

Click on test_page.html.

Your test Web page should be displayed in your browser.

Confirm that it renders correctly and attach a screenshot of the page to this worksheet.

MySQL

Web-based MySQL Administration

The easiest way to manage MySQL is through a Web-based tool called PHPMyAdmin. This software is preinstalled in your Container and access is straightforward.

Point your Web browser to your Container URL and add /phpmyadmin at the end (don’t forget the leading forward slash), then press . (You may wish to bookmark this for convenience because we’ll be using this quite a bit.)

Log in using the ID root with no password.

To verify that you have logged in correctly, take a screenshot of the main PHPMyAdmin page and attach it to this worksheet.

Log out by clicking on the icon of an open door in the upper right corner, under the label PHPMyAdmin. We’ll be using this tool in a later lab.

PHP

Web servers can generate dynamic content using CGI (Common Gateway Interface). This allows the server to execute a program that produces HTML and re-direct the HTML output to the Web client.

You can use almost any programming language to write CGI code as long as the Web server knows how to read and execute programs written in that language. PHP is a popular scripting language used for Web development and is preinstalled on your server.

PHP Web Syntax

PHP code can be mixed in with HTML in a similar manner to Javascript. The tag used to enclose your code is

That’s it.

Create a PHP Test PAccounting 6,Accounting,,

Get a Unique Answer HERE or Order a Similar Paper

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order