Linux Lab #11 (25pts)

Due Monday June 20

Use the script command to make a log of your activities. The log should be named Lab11.HOSTNAME.DATE where HOSTNAME is your hostname (fetched from an environment variable or inline execution) and DATE is the current date and time in the format MMDDYY (fetched with inline execution). (E.g. "Lab11.LINFORD3040.052305")

In answering direct questions below (as marked by the question-mark '?'), use a shell comment to give your answer. For example, if I say: "What is the command to give you the system time?" You should type, at the command prompt, "# date is the command" or something to that effect. The important part is the hash-mark '#' which causes the shell to ignore everything behind it.

I strongly recommend that you use two terminals: one to run the script command and one to test your commands before executing them under script. It's also a good idea to use shell comments to say which part of the assignment the following commands are for.

Do not run any program which generates lots of escape- and meta-characters inside a terminal running the 'script' command. This includes man, vi, and pico.

Install a PHP web application (phpMyAdmin)

  1. Copy /public_3040/phpMyAdmin.tar.bz2 from 192.168.0.100 to your machine.
  2. Extract this file into /srv/www/htdocs
  3. Rename the extracted directory to "phpMyAdmin"
  4. Change into the new directory
  5. Make a backup copy of config.inc.php with an appropriate file name
  6. Set the following attributes in config.inc.php:
    1. Set blowfish_secret to some random collection of numbers, letters, and symbols
    2. PmaAbsoluteUri (your phpMyAdmin url) to your FQDN
    3. MySQL server connection type from 'tcp' to 'socket'
    4. Web application authentication type from 'config' to 'cookie'
  7. Use diff to show your changes in context

Test web application

  1. Browse to https://localhost/phpMyAdmin. Does it work?
  2. Log in using your MySQL root username and password. You should be able to control your MySQL server from here.
  3. Show the access log for the secure virtual server.

When finished, type exit or press ^D until you get a message like "Script done, file is Lab11.HOSTNAME.DATE". To turn in the assignment, scp the logfile to 192.168.0.100:/public_3040 as user "cs3040"