ISSC457_Lab1_LastName_FirstName.doc

ISSC457_Lab1_LastName_FirstName.doc

ISSC457Week 2 Lab 1

Name: _________________________Date: _____________

Fill in your name above, put your full response below the question, save the file using the file naming convention: “ISSC457_Lab1_LastName_FirstName.doc” where LastName is your last name and FirstName is your first name, then return this document for grading.

In this lab: Review the steps only.

Estimated completion time: 60 minutes

Outcome

Report the steps you need to perform these tasks.

Validation/Evaluation

· Where can you find Apache logs?

· What are some of the logs maintained by Apache?

· Where can you find ProFTP logs?

· What are some of the logs maintained by ProFTP?

· What are other common logs maintained in Ubuntu via Syslog?

Lab Solution

1. VMWare

image1.png

Note: We are using VMWare Workstation 6.5 for this exercise but the following steps are similar for VMWare Player.

2. Click on “Open Existing VM or Team” to open an existing virtual machine and browse to the directory where you extracted the UbuntuWebServer image. Select the Ubuntu.vmx file and click on Open.

image2.png

image3.png

3. Click on “Take Ownership” on the following dialog box.

image4.png

4. Click on Power on this virtual machine to start the UbuntuWebServer virtual machine.

image5.png

5. On the next window, select “I copied it” and click OK.

image6.png

6. Wait while the virtual machine starts.

image7.png

7. Press Enter to bring up the login prompt and login with username root, and password password.

image8.png

8. Type cd /var/log and press Enter to go to the directory storing the log files.

image9.png

9. Type ls –la | more and press Enter to list all log files.

image10.png

image11.png

image12.png

The most relevant log files include:

· auth.log

· daemon.log

· debug

· kern.log

· messages

· syslog

10. Apache 2 stores its log files in /var/log/apache2. Type cd apache2 and press Enter to go to this directory.

image13.png

11. Type ls –la and press Enter to list all log files used by Apache.

image14.png

The access.log file keeps a record of all accesses to the Web server. The error.log file stores error messages generated by the server.

12. Type nano access.log and press Enter to open the access log file.

image15.png

Get familiar with the structure of each entry in this log file.

13. Next, type nano error.log and press Enter to open the error log file.

image16.png

Again, get familiar with the structure of each entry in this log file.

14. Now, go to the /var/log/proftpd/ directory on your UbuntuWebServer box. ProFTP is used by UbuntuWebServer to offer an FTP server. This tool logs all login attempts, both successful and unsuccessful, to /var/log/proftpd/proftpd.log.

image17.png

15. Type nano proftpd.log and press Enter to open the access log file.

image18.png

Get familiar with the structure of this log file.

16. Close all windows.