Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Instructions:

I. First, Apache on Fedora. The date time stamp for each entry in a log is useful information when searching a log containing thousands of entries for entries that occurred at a certain time on a certain date. However, withFedora virtual machines, the odds of your date and time being accurate are small unless your machine is synchronized with an external time server. Therefore, the first thing we'll do in this lab is to synchronize your date and time with an ntp server.

1. Start this process by logging into your virtual machine as root and opening a command window. At the command prompt, type yum install -y ntp and press Enter. The yum installer will install the ntp daemon, and you will return to the command prompt.

2. Type ntpdate pool.ntp.org and press Enter. The ntp daemon will update your time and date.

3. To verify that the date and time are correct, type date at the command prompt. Record the date and time in the space provided.

II. There are many ways that you can locate the Apache log files. We'll examine one method.

1. At the command prompt, type

grepCustomLog /etc/httpd/conf/httpd.conf

grep will display several lines, one of which contains the relative path of the log file. Record the name and location of the Apache log file in the space provided. Note that line containing the name is the only line that doesn't start with a pound sign. Also, it is expressed as a relative path.

2. Locate the log file and record its absolute path in the space provided. Hint: You can use the locate or find commands to obtain the absolute path.

III. Now that we've found the log file, let's put something into it that we should recognize.

1. Switch to the graphical user interface for your Fedora machine, log in, and open Firefox. Type the following URL into the address text box and press Enter:

http://localhost

Summarize the web page that is displayed by your browser.

2. Switch back to the command window. At the command prompt, type

grepCustomLog /etc/httpd/conf/httpd.conf

Record the name and location of the Apache log file in the space provided. Note that this value is expressed as a relative path in the Apache configuration file.

3. Open the log file using vi and the absolute path you previously recorded. Scroll down to the last entry in the log and record that entry in the space provided.

4. Based on your reading assignment and any information you can find about the log on the Internet, describe the various parts of the entry you recorded and what they are used for.

5. Exit out of vi.

IV. Now we'll do the same thing with the error log file.

1. typegrepErrorLog /etc/httpd/conf/httpd.conf at the command prompt, and then press Enter.

Record the name and location of the Apache error log file in the space provided. Note that this value is expressed as a relative path in the Apache configuration file.

2. Locate the error log file and record its absolute path in the space provided. Hint: You can use the locate or find commands to obtain the absolute path.

3. Switch to the graphical user interface for your Fedora machine, and open Firefox. Type the following URL into the address text box and press Enter:

localhost/pagenothere.html

Summarize the error message that is reported by your browser.

4. Switch back to the command line and open the error log using vi and the path for the error log that you recorded above. Scroll to the last entry in the log and record it in the space provided.

5. Compare the information in the log with the error message displayed by the browser. Do they match?

V. Next, we'll examine how we view logging for IIS 7.

1. Start your Windows Server 2008 virtual machine, and log in as administrator.

2. Verify that the date and time for your machine is correct. Windows virtual machines are better about keeping time, so this should not be a problem.

3. Open your Web browser, type localhost in the address text box. and press Enter. The home page for your Web site will display in the browser.

4. Navigate to the IIS manager, open your Web site in the left-hand pane, and double click on it. The icons associated with the features and settings for your Web site will display in the right-hand pane.

5. Under the IIS section, click on the Logging icon to open it. The Logging page will display.

6. Examine the current settings for logging and record the location of the log files in the space provided.

7. Navigate to the location you previously recorded where the log files are stored. You will see several log files.

8. Open the most recent log file and scroll to the bottom. Record the line with the most recent date in the space provided.

9. Using your text book and sources from the Internet, research each field in the line and record what each represents in the space provided.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91525364
  • Price:- $140

Priced at Now at $140, Verified Solution

Have any Question?


Related Questions in Programming Language

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As